/DouLamp

豆豆的台灯

Primary LanguageC++Do What The F*ck You Want To Public LicenseWTFPL

M5Stick/Atom/AtomLite based lamp with iOS App

  • M5StickC/M5Atom/M5AtomLite.
  • TB6612 for PWM control, can drive up to 15W LED (15V*1A).
  • Two-color(white and yellow) 12V LED strip. RGB LED strip(NeoPixels) is not supported yet.

Build M5StickC/M5Atom firmware

Run following commands under m5 directory

  • Build and upload firmware for M5Stick-C:
pio init
pio run -e m5stick-c-release -t upload
  • Build and upload firmware for M5Atom:
pio init
pio run -e m5atom-release -t upload

Generate project for IDE

Run following commands under m5 directory

pio init --ide [vscode|clion|...] -e [m5stick-c-[debug|release]|m5atom-[debug|release]]

Please note that generate project out of the source tree will fail for M5Atom, PlatformIO may have bug.