~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-Noctigon_KR4-tintramp.h

  • Committer: Selene ToyKeeper
  • Date: 2021-11-04 02:33:01 UTC
  • mto: (483.10.3 sp10-pro)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20211104023301-e9z60wvpdw8tum4g
fixed KR4-tintramp build (switch wasn't working) and added it to MODELS

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 *      ADC12   thermal sensor
29
29
 */
30
30
 
31
 
#include "hwdef-Emisar_D4Sv2-tintramp.h"
 
31
#define ATTINY 1634
 
32
#include <avr/io.h>
32
33
 
33
34
// move the switch to a different pin
34
 
#undef SWITCH_PIN
35
 
#undef SWITCH_PCINT
36
 
#undef SWITCH_PCIE
37
 
#undef SWITCH_PCMSK
38
 
#undef SWITCH_PORT
39
 
#undef SWITCH_PUE
40
 
#undef PCINT_vect
41
35
#define SWITCH_PIN   PB2     // pin 17
42
36
#define SWITCH_PCINT PCINT10 // pin 17 pin change interrupt
43
37
#define SWITCH_PCIE  PCIE1   // PCIE1 is for PCINT[11:8]
46
40
#define SWITCH_PUE   PUEB    // pullup group B
47
41
#define PCINT_vect   PCINT1_vect  // ISR for PCINT[11:8]
48
42
 
 
43
// the rest of the config is the same as D4Sv2-tintramp
 
44
#include "hwdef-Emisar_D4Sv2-tintramp.h"
 
45
 
49
46
#endif