FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
featherlib/include/feather/feather_m0.h at master · kisom/featherlib · GitHub
kisom
/
featherlib
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
featherlib
/
include
/
feather
/
feather_m0.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (27 loc) · 851 Bytes
Breadcrumbs
featherlib
/
include
/
feather
/
feather_m0.h
Copy path
File metadata and controls
38 lines (27 loc) · 851 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
#
ifndef
__FEATHERLIB_FEATHER_M0_H
#
define
__FEATHERLIB_FEATHER_M0_H
#
include
<
Arduino.h
>
#
include
<
stdint.h
>
#
include
<
feather/board.h
>
#
if
!defined(ARDUINO_SAMD_FEATHER_M0) && !defined(ADAFRUIT_FEATHER_M0)
#
error
Attempting to load board support for the wrong board.
#
endif
#
ifndef
UNUSED_ANALOG
#
define
UNUSED_ANALOG
A0
#
endif
//
FeatherM0 supports the Feather M0 family of boards.
class
FeatherM0
: Board {
public:
FeatherM0
() : pin9Mode(
INPUT
), unusedAnalog(
UNUSED_ANALOG
) {};
FeatherM0
(
int
pin9Mode) : pin9Mode(pin9Mode), unusedAnalog(
UNUSED_ANALOG
) {};
FeatherM0
(
int
pin9Mode,
int
unusedAnalog)
: pin9Mode(pin9Mode), unusedAnalog(unusedAnalog) {};
double
voltage
();
void
setup
(
int
baudrate,
bool
wait);
uint32_t
random
();
void
seed
();
private:
int
pin9Mode;
int
unusedAnalog;
};
#
endif
//
__FEATHERLIB_FEATHER_M0_H
Back
|
FazBrowse Home
|
New Git URL