mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 13:19:41 +00:00
led and rc
This commit is contained in:
@ -12,6 +12,16 @@
|
||||
|
||||
#define NUMLEDS 10
|
||||
|
||||
#define SHIFT_REG_DATA_PORT GPIOA
|
||||
#define SHIFT_REG_DATA_PIN GPIO_PIN_4
|
||||
|
||||
#define SHIFT_REG_CLOCK_PORT GPIOA
|
||||
#define SHIFT_REG_CLOCK_PIN GPIO_PIN_5
|
||||
|
||||
// Минимальные задержки для правильной работы
|
||||
#define DATA_SETUP_TIME 20 // Время установки данных в нс
|
||||
#define CLOCK_PULSE_WIDTH 20 // Длительность импульса тактирования в нс
|
||||
|
||||
void SetShiftReg_inline (unsigned char b1, unsigned char b2, unsigned char b3);
|
||||
void SetShiftReg (unsigned char shiftreg[3]);
|
||||
|
||||
|
Reference in New Issue
Block a user