Category : microcontroller

I recently started playing with Arduinos, and, coming from the Java world, I am struggling to contend with the constraints of microcontroller programming. I am slipping ever closer to the Arduino 2-kilobyte RAM limit. The problem I am struggling with constantly is how to make code more reusable and reconfigurable, without increasing its compiled size ..

Read more

How do I implement my own custom stream in C++? Why? I want to send data from one micro-controller to another using a wired connection and I think a custom stream is the most intuitive way. Example: #include "myStream.h" int main() { myStream << "Hello world!"; return 0; } Source: Windows Que..

Read more

const String roomname_short = "Test"; void setup() { Serial2.begin(9600, SERIAL_8N1, RXD, TXD); Serial.begin(115200); //Serial2.write("A"); Serial2.println((READY_MESSAGE)); Serial.println(READY_MESSAGE); } void loop() { char c; String readString; while (Serial2.available()) { c = Serial2.read(); readString += c; } if (readString.length() >= 10) { if (readString.substring(1, 9) == "INTERNAL") { readString = ""; } } if (readString.length() > 0) { ..

Read more