Commit graph

7 commits

Author SHA1 Message Date
rbaron
b521e3f0f6 A hacky fix for PWM + TWI 2021-03-15 22:40:09 +01:00
rbaron
02df5f4595 Initial shtc3 TWI/I2C implementation
Weirdly, it only works ~1/5 of the time.
2021-03-14 16:55:24 +01:00
rbaron
fb07a1244c PWM start/stop in RTC callback.
I initially tried calling prst_pwm_init() in main(), and just using start/stop in
the callback, but that led to a weird behavior in the PWM output. It was set to
high after the end of the callback.

Callnig uninit/re-calling init() inside the RTC callback fixed, but more investigation
is required.
2021-03-14 15:03:33 +01:00
rbaron
05dcb9de84 Hard coded PWM with 500kHz frequency works 2021-03-14 14:30:32 +01:00
rbaron
20243a26a2 Extracted BLE to src/prst/ble.{c,h} 2021-03-14 11:06:45 +01:00
rbaron
a5c932def2 Extracts RTC stuff to src/rtc.{c,h} 2021-03-13 16:49:55 +01:00
rbaron
7ef278fe40 Initial b_parasite code - a fork from playground 2021-03-13 14:56:37 +01:00