SadDarkAngel / blackboard-STC15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blackboard-STC15

A firmware for STC15L2K32S microcontroller on Black Board T5 ESP-13

Use SDCC to compile

Use STC MCU ISP flash tool to programm

Install both sdcc and stcgal per instructions (or use distribution packages for sdcc)

make make install # will download to the MCU

What it supports for now:

  • STC15 UART (baudrate: 115200)
  • Reading on-board DHT11 values
  • One-wire communications (DS18B20 temp sensor) via P1.5 (pin 4 of 5-pin header)
  • I2C communications via pins 2 and 3 (SDA/SCL) of 5-pin header (tested with BH1750 light sensor)
  • Using PWM to flash on-board RGB LEDs
  • On-board beeper
  • On-board relay

TODO

  • 2nd UART to interface ESP chip

About


Languages

Language:C++ 63.7%Language:C 35.1%Language:Makefile 1.2%