diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-15 19:53:41 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-15 19:53:41 +0200 |
commit | 8bacb24bac1437bfb66db5bda2592b8794f6ed26 (patch) | |
tree | 53da6d812d3e86c378d5e4be8f92ee1ab8fbbe4b /matrix.c | |
parent | 451f3164839fb609543431d23f37be457c2d3699 (diff) | |
download | tmk7637-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |