aboutsummaryrefslogtreecommitdiff
path: root/matrix.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-15 19:53:41 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-15 19:53:41 +0200
commit8bacb24bac1437bfb66db5bda2592b8794f6ed26 (patch)
tree53da6d812d3e86c378d5e4be8f92ee1ab8fbbe4b /matrix.c
parent451f3164839fb609543431d23f37be457c2d3699 (diff)
downloadtmk7637-8bacb24bac1437bfb66db5bda2592b8794f6ed26.tar.gz
document how to build a solenoid driver and install a solenoid
* In contrast to the relay breakout board I was using before, the solenoid driver is HIGH-active, so some code had to be changed as well.
Diffstat (limited to 'matrix.c')
-rw-r--r--matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/matrix.c b/matrix.c
index 47623f7..4c1cea9 100644
--- a/matrix.c
+++ b/matrix.c
@@ -293,10 +293,10 @@ static void init_pins(void)
PORTF &= ~0b00001000;
/*
- * Solenoid (ie. relay). It's LOW-active.
+ * Solenoid
*/
DDRB |= (1 << PB3);
- PORTB |= (1 << PB3);
+ PORTB &= ~(1 << PB3);
}
static void select_col(uint8_t col)