PeterO wrote: ↑Tue Dec 17, 2019 8:18 amhttps://www.arduino.cc/reference/en/lan ... l/println/hippy wrote: ↑Mon Dec 16, 2019 5:21 pmYes; apologies for that. I'm not familiar with C or Arduino so the code might need tweaking. I think the "not" should be some single character symbol. The println might well have some other format.
Note that this is NOT the standard C printf so it doesn't support multiple parameters (or a format string).
Code: Select all
Serial.println() Description Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n'). This command takes the same forms as Serial.print(). Syntax Serial.println(val) Serial.println(val, format) Parameters Serial: serial port object. See the list of available serial ports for each board on the Serial main page. val: the value to print. Allowed data types: any data type. format: specifies the number base (for integral data types) or number of decimal places (for floating point types).