YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
boostxl_eduMKII_base.cpp
1#include "boostxl_eduMKII_base.h"
2#include <cassert>
3
4gpio_interface & boostxl_eduMKII_base::button1() {
5 assert(_button1);
6 return *_button1;
7}
8
9gpio_interface & boostxl_eduMKII_base::button2(){
10 assert(_button2);
11 return *_button2;
12}
13
14gpio_interface & boostxl_eduMKII_base::led_red(){
15 assert(_led_red);
16 return *_led_red;
17}
18
19gpio_interface & boostxl_eduMKII_base::led_green(){
20 assert(_led_green);
21 return *_led_green;
22}
23
24gpio_interface & boostxl_eduMKII_base::led_blue(){
25 assert(_led_blue);
26 return *_led_blue;
27}
28
29gpio_interface & boostxl_eduMKII_base::buzzer(){
30 assert(_buzzer);
31 return *_buzzer;
32}
33
34gpio_interface & boostxl_eduMKII_base::gator(){
35 assert(_gator);
36 return *_gator;
37}
38
39gpio_interface & boostxl_eduMKII_base::servo(){
40 assert(_servo);
41 return *_servo;
42}
43
44spi_interface & boostxl_eduMKII_base::lcd_spi(){
45 assert(_lcd_spi);
46 return *_lcd_spi;
47}
48
49gpio_interface & boostxl_eduMKII_base::lcd_cs(){
50 assert(_lcd_cs);
51 return *_lcd_cs;
52}
53
54gpio_interface & boostxl_eduMKII_base::lcd_rst(){
55 assert(_lcd_rst);
56 return *_lcd_rst;
57}
58
59gpio_interface & boostxl_eduMKII_base::lcd_dc(){
60 assert(_lcd_dc);
61 return *_lcd_dc;
62}
63
64i2c_interface & boostxl_eduMKII_base::sensor_i2c(){
65 assert(_sensor_i2c);
66 return *_sensor_i2c;
67}
68
69gpio_interface & boostxl_eduMKII_base::opt3001_int(){
70 assert(_opt3001_int);
71 return *_opt3001_int;
72}
73
74gpio_interface & boostxl_eduMKII_base::tmp006_int(){
75 assert(_tmp006_int);
76 return *_tmp006_int;
77}
78
79adc_channel & boostxl_eduMKII_base::joy_x(){
80 assert(_joy_x);
81 return *_joy_x;
82}
83
84adc_channel & boostxl_eduMKII_base::joy_y(){
85 assert(_joy_y);
86 return *_joy_y;
87}
88
89gpio_interface & boostxl_eduMKII_base::joy_button(){
90 assert(_joy_button);
91 return *_joy_button;
92}
93
94adc_channel & boostxl_eduMKII_base::mic(){
95 assert(_mic);
96 return *_mic;
97}
98
99adc_channel & boostxl_eduMKII_base::acc_x(){
100 assert(_acc_x);
101 return *_acc_x;
102}
103
104adc_channel & boostxl_eduMKII_base::acc_y(){
105 assert(_acc_y);
106 return *_acc_y;
107}
108
109adc_channel & boostxl_eduMKII_base::acc_z(){
110 assert(_acc_z);
111 return *_acc_z;
112}