~toykeeper/flashlight-firmware/lume1

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-Noctigon_K1.h

  • Committer: Selene Scriven
  • Date: 2020-04-28 00:44:49 UTC
  • mfrom: (433.2.8 k1-12v)
  • Revision ID: bzr@toykeeper.net-20200428004449-ezsg5p6bf2eoj33d
merged Noctigon KR4 and K1-12V (XHP35) branches
(also includes some minor thermal updates to make it faster, more stable, and easier to tweak per host)
(and some code to prevent eeprom corruption while turning power chips on/off)
(and enables reboot function on tiny1634)
(and makes rainbow aux RGB mode speed configurable per host)
(and calibrates the original K1 a bit better)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
// REFS[1:0] = 1, 0 for internal 1.1V reference
72
72
// other bits reserved
73
73
#define ADMUX_VOLTAGE_DIVIDER 0b10000110
74
 
#define ADC_PRSCL   0x06    // clk/64
 
74
#define ADC_PRSCL   0x07    // clk/128
75
75
 
76
76
// Raw ADC readings at 4.4V and 2.2V
77
77
// calibrate the voltage readout here