mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 01:31:21 +03:00
MLX90640: got registers, start to write image reading process
This commit is contained in:
@@ -29,8 +29,13 @@
|
||||
// USB pullup (not present in bluepill, should be soldered) - PA15
|
||||
#define USBPU_port GPIOA
|
||||
#define USBPU_pin (1<<15)
|
||||
#define MLXPOW_port GPIOB
|
||||
#define MLXPOW_pin (1<<5)
|
||||
#define USBPU_ON() pin_set(USBPU_port, USBPU_pin)
|
||||
#define USBPU_OFF() pin_clear(USBPU_port, USBPU_pin)
|
||||
#define MLXPOW_ON() pin_set(MLXPOW_port, MLXPOW_pin)
|
||||
#define MLXPOW_OFF() pin_clear(MLXPOW_port, MLXPOW_pin)
|
||||
#define MLXPOW_VAL() pin_read(MLXPOW_port, MLXPOW_pin)
|
||||
|
||||
#define LED_blink(x) pin_toggle(x ## _port, x ## _pin)
|
||||
#define LED_on(x) pin_clear(x ## _port, x ## _pin)
|
||||
|
||||
Reference in New Issue
Block a user