fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
3ab6a9b
v0.1.1
1#include "serial.hpp" 2 3#include "stdlib.hpp" 4 5namespace serial { 6void init (unsigned long baudrate ) { 7Serial .begin (baudrate ); 8 } 9 10void close () { 11Serial .end (); 12 } 13 14void const char * string ) { 15Serial .string ); 16 } 17 18void write (uint8_t byte ) { 19Serial .write (byte ); 20 } 21 22void write (uint8_t * bytes ,size_t len ) { 23Serial .write (bytes ,len ); 24 } 25 26int available_for_write () { 27return Serial .availableForWrite (); 28 } 29}