fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
3ab6a9b
v0.1.2
1#include "gpio.hpp" 2 3#include "stdlib.hpp" 4 5// TODO: Might be better to replace with port manipulation 6namespace gpio { 7void init_pin (uint pin ,GpioMode mode ) { 8if (mode == GpioMode ::GPIO_OUTPUT ) { 9pinMode (pin ,OUTPUT ); 10 }else if (mode == GpioMode ::GPIO_INPUT_PULLUP ) { 11pinMode (pin ,INPUT_PULLUP ); 12 }else if (mode == GpioMode ::GPIO_INPUT ) { 13pinMode (pin ,INPUT ); 14 } 15 } 16}