Jump to content
43oh

ILikeBread

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Thanks for all your responses! Just printing 10 works fine. This works perfectly as well: void loop() { int i=10; Serial.println(i, DEC); Serial.println(i, DEC); Serial.println(i, DEC); } But this sometimes prints a line that says 'A'. void loop() { int i=10; Serial.println(i, DEC); Serial.println(i, DEC); Serial.println(i, DEC); Serial.println(i, DEC); } So I think I'll assume I got a hardware problem ¯\_(ツ)_/¯. I uploaded it from my laptop as well, but I got the same problem there. I don't know why uint8_t, but I don't think i
  2. I set the baud rate at 4800 as even "Serial.println("hello");" printed garbage when the monitor was set to 9600, but 4800 works fine when printing text, so I figured it would be better to keep it at 4800. This code here: void setup() { Serial.begin(9600); } void loop() { for (int i = 0; i < 64; i++) { delay(100); Serial.println(i, DEC); } } Prints 0 up to 9 and then halts: https://imgur.com/a/CGrg5Ks (screenshot) I also replaced the msp430g2231 with a msp430g2211, but I see the same problem. Could the MSP-EXP430G2 be broken? I tried downloading
  3. I'm getting started with an MSP-EXP430G2 board with an msp430g2231 on Ubuntu 20.10 groovy (64 bit). I can use Serial.print and Serial.println just fine to print strings. But if I use it to print integers the Serial monitor just shows a lot of backward question marks (⸮⸮⸮⸮⸮⸮⸮⸮). Assuming it was a bug in the print code, I copied print(long, int) and printNumber(long, int) functions into my sketch. To my surprise these work fine! Using Serial.print often goes well up to 9, but breaks when it reaches 10. Sometimes it halts completely (image of serial monitor) I already download
×
×
  • Create New...