Skip to content
Snippets Groups Projects
Commit 6be5988f authored by Erik Strand's avatar Erik Strand
Browse files

Attempt serial communication

parent d1f27c8c
Branches strandstring
No related tags found
No related merge requests found
...@@ -27,10 +27,11 @@ int main() { ...@@ -27,10 +27,11 @@ int main() {
list_ports(); list_ports();
//const char* desired_port = "/dev/cu.usbserial-AC01YB5P"; //const char* desired_port = "/dev/cu.usbserial-AC01YB5P";
const char* desired_port = "/dev/ttyUSB0"; //const char* desired_port = "/dev/ttyUSB0";
//const char* desired_port = "/dev/ttyACM0"; const char* desired_port = "/dev/ttyACM0";
constexpr uint32_t baud_rate = 115200; constexpr uint32_t baud_rate = 9600;
//constexpr uint32_t baud_rate = 19200; //constexpr uint32_t baud_rate = 19200;
//constexpr uint32_t baud_rate = 115200;
constexpr uint32_t byte_buffer_size = 512; constexpr uint32_t byte_buffer_size = 512;
char byte_buffer[byte_buffer_size]; char byte_buffer[byte_buffer_size];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment