Timeline for Binary reader with arduino blinking 8 leds
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2021 at 16:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 13, 2021 at 2:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 23, 2015 at 22:08 | answer | added | gre_gor | timeline score: 1 | |
Jun 22, 2015 at 19:08 | comment | added | Edgar Bonet | Then, in your initial comment, you failed to make clear what you were talking about. The “B” notation is, in actual practice not that different from “0x” for hex. Or even decimal, which is only a notation after all: you do not really care whether it is interpreted by the preprocessor or the compiler proper. | |
Jun 22, 2015 at 18:43 | comment | added | razzak |
@EdgarBonet i was talking about using binary literals not the operations at the cpu level, you can not do int x = 01001001; in arduino. You can however use binary special notation (formatter) like int x = B01001001; which is not actual binary but rather a predefined decimal like doing #define B01001001 73 .
|
|
Jun 22, 2015 at 8:36 | comment | added | Edgar Bonet | @razzak: Binary not being supported by Arduino is the silliest statement I ever heard about this platform. Almost everything inside the Arduino is binary. Decimal is only used for I/O, and only because we, humans, like it better that binary. | |
Jun 22, 2015 at 7:25 | comment | added | Mick Waites | You should be able to do what you are asking, however your question is not very clear. Are you asking how you would turn on/off the LEDs based on the binary value of a variable, or how you would get the raw sequence into the Arduino/source code? Or both? How are you wanting to get the sequence into the Arduino? Is it to be pre-scripted in the source code, stored on some external device (such as an SD card), input by a user from some other hardware (such as a keypad) or transmitted (either wirelessly or via a serial connection)? | |
Jun 22, 2015 at 3:56 | comment | added | razzak | i don't think binary is supported in arduino, but you could use bitwise operators with the decimal values of these binaries | |
Jun 21, 2015 at 21:12 | review | First posts | |||
Jun 22, 2015 at 1:35 | |||||
Jun 21, 2015 at 21:09 | history | asked | Le Cras | CC BY-SA 3.0 |