{"id":23069620,"url":"https://github.com/roboticsbrno/rb3204-rbcx-library","last_synced_at":"2025-04-30T05:09:41.797Z","repository":{"id":48410527,"uuid":"266558019","full_name":"RoboticsBrno/RB3204-RBCX-library","owner":"RoboticsBrno","description":"RBCX library for main controller ESP32","archived":false,"fork":false,"pushed_at":"2024-03-12T19:24:16.000Z","size":999,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-30T05:09:35.907Z","etag":null,"topics":["esp32","library","motor","rbcx","servo","smart-servos"],"latest_commit_sha":null,"homepage":"https://roboticsbrno.github.io/RB3204-RBCX-library/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoboticsBrno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-24T14:28:03.000Z","updated_at":"2024-11-13T15:50:10.000Z","dependencies_parsed_at":"2024-03-05T16:50:46.893Z","dependency_job_id":"13ace5ff-8edf-4d21-909a-a24d2ed82269","html_url":"https://github.com/RoboticsBrno/RB3204-RBCX-library","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FRB3204-RBCX-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FRB3204-RBCX-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FRB3204-RBCX-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FRB3204-RBCX-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboticsBrno","download_url":"https://codeload.github.com/RoboticsBrno/RB3204-RBCX-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251644842,"owners_count":21620634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","library","motor","rbcx","servo","smart-servos"],"created_at":"2024-12-16T06:16:15.879Z","updated_at":"2025-04-30T05:09:41.780Z","avatar_url":"https://github.com/RoboticsBrno.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RB3204-RBCX-library\n\nLibrary for board [RB3204-RBCX](https://github.com/RoboticsBrno/RB3204-RBCX) based on ESP32.\n\n[Library documentation](https://roboticsbrno.github.io/RB3204-RBCX-library/).\n\nArduino compatible.\n\n## Example\n\n```cpp\n#include \u003cfreertos/FreeRTOS.h\u003e\n#include \u003cfreertos/task.h\u003e\n#include \u003cesp_system.h\u003e\n#include \u003cstdio.h\u003e\n\n#include \"RBCX.h\"\n\nextern \"C\" void app_main() {\n    // Initialize the robot manager\n    auto\u0026 man = rb::Manager::get();\n    man.install();\n\n    // Set motor power limits\n    man.setMotors()\n        .pwmMaxPercent(0, 70)  // left wheel\n        .pwmMaxPercent(1, 70)  // right wheel\n        .pwmMaxPercent(2, 28)  // turret left/right\n        .pwmMaxPercent(3, 45)  // turret up/down\n        .set();\n\n    man.leds().yellow(); // Turn the yellow led on\n\n    //man.piezo().setTune(444); // start the piezo\n\n    int i = 0;\n    const auto\u0026 bat = man.battery();\n    while(true) {\n        vTaskDelay(1000 / portTICK_PERIOD_MS);\n        printf(\"Tick #%d, battery at %d%%, %dmv\\n\", i++, bat.pct(), bat.voltageMv());\n    }\n}\n\n```\n\n## Testing the library during development\n\nWhen you want to test the library, when you making some change in the library, use command `pio ci` in the command line/shell:\n\n```sh\npio ci --lib=\".\" -C \"platformio.ini\" examples/motors\n```\n\nFor testing you can use any project in the folder `examples`. Just replace the `examples/motors` with some other project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Frb3204-rbcx-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboticsbrno%2Frb3204-rbcx-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Frb3204-rbcx-library/lists"}