Nofew

Untitled

Jun 17th, 2012
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. [20:04] <Keshl> ...I feel so smart.
  2. [20:05] <Keshl> Not sure if this was a concidence or not.
  3. [20:05] <Keshl> I'm in #arduino. The microcontroller uses C, and I only know C. Hate C++, mot people there prefer C++ or Python, I think.
  4. [20:05] <Keshl> Guy comes in asking for help cuz the String library Arduino uses has a weird bug, and the only way to avoid it is to use character arrays.
  5. [20:06] <Keshl> Nobody, there, knew how to do it.
  6. [20:06] <Keshl> So, I post this: http://pastebin.com/xZYQB9EM
  7. [20:06] <luxbot> Title: [C] char typedstuff[65]; short int i = 0; while(Serial.available() == 1) { typed - Pastebin.com (at pastebin.com)
  8. [20:07] <Keshl> I think the fact that I typed "short int", and then later said "change line 4 to "typedstuff[i++] = Serial.read();"", confued the crap out of them.
  9. [20:08] <Keshl> (Before it comes up -- Yes, I know, the array can overflow. Did that intentionally cuz the guy said he needed it for school. Didn't wanna do /all/ his homework <.<)
  10. [20:08] <-- A-man has left this server (Ping timeout: 245 seconds).
  11. [20:09] <Keshl> Is this how it feels when you guys talk to me about math and light? o_o
Advertisement
Add Comment
Please, Sign In to add comment