Skip to content

Commit ac7870d

Browse files
committed
use enum instead of static const int
1 parent 57784ca commit ac7870d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

avr/cores/picocore/constants.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// global constants
22
#include <stdint.h>
33

4-
static const uint8_t LOW = 0;
5-
static const uint8_t HIGH = 1;
6-
//static const uint8_t LED_BUILTIN = 2;
4+
enum {LOW = 0, HIGH};
75
enum {LED_BUILTIN = 2};
8-
//static const uint8_t NUM_DIGITAL_PINS = 6;
96
enum {NUM_DIGITAL_PINS = 6};
107

118
typedef enum {MSBFIRST = 0, LSBFIRST} _bitOrder;

0 commit comments

Comments
 (0)