dit and dah instead of l and r
This commit is contained in:
parent
b076f2c637
commit
4c1a8fc062
3 changed files with 31 additions and 28 deletions
|
@ -18,8 +18,8 @@
|
|||
#include <config.h>
|
||||
|
||||
extern const uint LED_PIN = PICO_DEFAULT_LED_PIN;
|
||||
extern const uint LEFT_PADDLE_PIN = 14;
|
||||
extern const uint RIGHT_PADDLE_PIN = 15;
|
||||
extern const uint DIT_PADDLE_PIN = 14;
|
||||
extern const uint DAH_PADDLE_PIN = 15;
|
||||
extern const uint BUZZER_PIN = 18;
|
||||
extern const uint CW_OUT_PIN = 17;
|
||||
// extern const uint AUDIO_OUT_PIN = 16;
|
||||
|
@ -37,12 +37,12 @@ void setup()
|
|||
gpio_put(LED_PIN, 0);
|
||||
|
||||
// Setup pins for left and right paddles
|
||||
gpio_init(LEFT_PADDLE_PIN);
|
||||
gpio_set_dir(LEFT_PADDLE_PIN, GPIO_IN);
|
||||
gpio_pull_up(LEFT_PADDLE_PIN);
|
||||
gpio_init(RIGHT_PADDLE_PIN);
|
||||
gpio_set_dir(RIGHT_PADDLE_PIN, GPIO_IN);
|
||||
gpio_pull_up(RIGHT_PADDLE_PIN);
|
||||
gpio_init(DIT_PADDLE_PIN);
|
||||
gpio_set_dir(DIT_PADDLE_PIN, GPIO_IN);
|
||||
gpio_pull_up(DIT_PADDLE_PIN);
|
||||
gpio_init(DAH_PADDLE_PIN);
|
||||
gpio_set_dir(DAH_PADDLE_PIN, GPIO_IN);
|
||||
gpio_pull_up(DAH_PADDLE_PIN);
|
||||
gpio_init(CW_OUT_PIN);
|
||||
gpio_set_dir(CW_OUT_PIN, GPIO_OUT);
|
||||
gpio_put(CW_OUT_PIN, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue