Add PlatformIO project setup, local libraries, and PCB Gerber files
- Add platformio.ini for ESP32 DevKit (Arduino framework, espressif32 6.10.0) - Vendor ArduinoJson, MPU6050_tockn, SCServo, Simple_FOC, and WebSockets so a fresh clone builds without downloading dependencies - Add .gitignore rules for PlatformIO/IDE build artifacts - Add controller PCB Gerber and drill files
This commit is contained in:
1 parent
19a012ec8e
commit
324d114386
690 files changed
+109617
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
example for changing ID.
|
||||
*/
|
||||
|
||||
// the uart used to control servos.
|
||||
// GPIO 18 - S_RXD, GPIO 19 - S_TXD, as default.
|
||||
#define S_RXD 18
|
||||
#define S_TXD 19
|
||||
|
||||
#include <SCServo.h>
|
||||
|
||||
SCSCL sc;
|
||||
|
||||
int ID_ChangeFrom = 1;
|
||||
int ID_Changeto = 2;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial1.begin(1000000, SERIAL_8N1, S_RXD, S_TXD);
|
||||
sc.pSerial = &Serial1;
|
||||
delay(1000);
|
||||
|
||||
sc.unLockEprom(ID_ChangeFrom);//unlock EPROM-SAFE
|
||||
sc.writeByte(ID_ChangeFrom, SCSCL_ID, ID_Changeto);//ID
|
||||
sc.LockEprom(ID_Changeto);// EPROM-SAFE locked
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user