~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-TK_Saber.h

  • Committer: Selene Scriven
  • Date: 2020-07-06 20:24:28 UTC
  • mfrom: (188.1.294 fsm)
  • Revision ID: bzr@toykeeper.net-20200706202428-7pyen2ow9q2rtd9p
merged nearly a year of updates from the fsm branch, including the new product map

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define SWITCH_PIN   PB2    // pin 7
24
24
#define SWITCH_PCINT PCINT2 // pin 7 pin change interrupt
25
25
 
26
 
#define ADC_PRSCL   0x06    // clk/64 (no need to be super fast)
 
26
#define ADC_PRSCL   0x07    // clk/128
27
27
 
28
28
// average drop across diode on this hardware
29
29
#define VOLTAGE_FUDGE_FACTOR 5  // add 0.25V
30
30
 
31
 
//#define TEMP_DIDR   ADC4D
32
 
#define TEMP_CHANNEL 0b00001111
33
 
 
34
31
#define FAST        0xA3    // fast PWM both channels
35
32
#define PHASE       0xA1    // phase-correct PWM both channels
36
33