Skip to content

Commit

Permalink
Fix stm32/HM-LC-Dim1PWM-CV Sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-4ward committed Nov 14, 2019
1 parent c21f3fa commit 64d1e5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/stm32/HM-LC-Dim1PWM-CV/HM-LC-Dim1PWM-CV.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#define CONFIG_BUTTON_PIN PB12

#define DIMMER1_PIN PB1
#define DIMMER2_PIN PA3

#define ENCODER1_SWITCH PB15
#define ENCODER1_CLOCK PB13
Expand Down Expand Up @@ -61,7 +60,7 @@ const struct DeviceInfo PROGMEM devinfo = {
typedef LibSPI<PA4> RadioSPI;
typedef AskSin<StatusLed<LED_BUILTIN>,NoBattery,Radio<RadioSPI,PB0> > HalType;
typedef DimmerChannel<HalType,PEERS_PER_CHANNEL> ChannelType;
typedef DimmerDevice<HalType,ChannelType,3,3> DimmerType;
typedef DimmerDevice<HalType,ChannelType,6,3> DimmerType;

HalType hal;
DimmerType sdev(devinfo,0x20);
Expand Down Expand Up @@ -107,7 +106,7 @@ void setup () {
delay(5000);
DINIT(57600,ASKSIN_PLUS_PLUS_IDENTIFIER);
Wire.begin();
bool first = control.init(hal,DIMMER1_PIN,DIMMER2_PIN);
bool first = control.init(hal,DIMMER1_PIN);
buttonISR(cfgBtn,CONFIG_BUTTON_PIN);
buttonISR(enc1,ENCODER1_SWITCH);
encoderISR(enc1,ENCODER1_CLOCK,ENCODER1_DATA);
Expand Down

0 comments on commit 64d1e5c

Please sign in to comment.