Fixed Python Interface

This commit is contained in:
AlexanderHD27
2025-01-07 17:10:28 +01:00
parent 1f5148dcdd
commit 2a038367a8
36 changed files with 404 additions and 237 deletions

View File

@@ -36,6 +36,11 @@ void onRxPackage(void * args, char *data, uint16_t len, GobotRPCTypes type, Gobo
g_appData.gobotrpc_ni->sendPackage(txBuffer, 0, GobotRPCTypes::RESPONSE, GobotRPCNumber::VACUM);
break;
}
case GobotRPCNumber::RESET: {
softwareReset();
break;
}
default: {
break;
@@ -49,7 +54,7 @@ void core1_main(void *pvParameters) {
appData->txQueue, appData->rxQueue, CORE_MASK_VACUM,
i2c0, 0x21, GORPC_SDA_PIN, GORPC_SCL_PIN, GORPC_INT_PIN
);
while (true) {
gpio_put(LED2_PIN, 0);
vTaskDelay(500 / portTICK_PERIOD_MS);
@@ -89,6 +94,9 @@ int main() {
core1_main, "Core 1 Main", 2048, &g_appData, 1, CORE_MASK_VACUM, &xCore1TaskHandle
);
char txBuffer[32];
g_appData.gobotrpc_ni->sendPackage(txBuffer, 0, GobotRPCTypes::RESPONSE, GobotRPCNumber::RESET);
vTaskStartScheduler();
while (true) {