Start by uploading the embedded file system.
On the PlatformIO tasks list click the Upload Filesystem Image
task.
Optional Accelerometer
If you're using an accelerometer you'll need to uncomment the flag in the platformio.ini
file (Just remove the ;
)
build_flags =
-DUSE_ACCELEROMETER
Now the throttle code can be uploaded.
On first compile a random access point name and password will be generated (This can be changed if you want to set your own later on include\ThrottleWiFiSettings.h
).
These can be viewed on the throttle so there's no need to remember them.
If you want some extra functionality you'll need to update your Command Station.
This step is optional and the throttle will still function without it but it won't be able to query the CS for the current power states.
Included is a file named myFilter.cpp
, this needs to be copied to the folder that contains the Command Station code and uploaded to your Command Station.