forked from elimbaum/TrinketPinball
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathewm.cpp
More file actions
36 lines (30 loc) · 658 Bytes
/
ewm.cpp
File metadata and controls
36 lines (30 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ewm.h
*
* Library for Eli Whitney Arduino camp 2016
* Eli Baum
*/
#include "ewm.h"
/* === initPinball ===
*
* This function sets everything up.
*/
void initPinball()
{
/* Peripheral initiation */
initTiming();
init7seg();
//initServo();
initMotor();
initSpeaker();
/* Other pins */
pinMode(BUMP_0_LED, OUTPUT);
pinMode(BUMP_1_LED, OUTPUT);
pinMode(BUMP_2_LED, OUTPUT);
pinMode(BUMP_0_SENSE, INPUT_PULLUP);
pinMode(BUMP_1_SENSE, INPUT_PULLUP);
pinMode(BUMP_2_SENSE, INPUT_PULLUP);
pinMode(FLIP_L_SENSE, INPUT_PULLUP);
pinMode(FLIP_R_SENSE, INPUT_PULLUP);
pinMode(OUT_SENSE, INPUT_PULLUP);
pinMode(RAMP_SENSE, INPUT_PULLUP);
}