- copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
| #include <lmic.h> | |
| #include <hal/hal.h> | |
| #include <SPI.h> | |
| #include <U8x8lib.h> | |
| #define BUILTIN_LED 25 | |
| #define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */ | |
| #define TIME_TO_SLEEP 60 /* Time ESP32 will go to sleep (in seconds) */ | |
| RTC_DATA_ATTR int bootCount = 0; |