PowerLED | High LEDs from a Netduino ethernet control
kandi X-RAY | PowerLED Summary
kandi X-RAY | PowerLED Summary
This project ia a Home Automation solution for controlling LED lighting using a Netduino or Meridian/P. Aims: Enabled the control of multiple high power (1 or 3 Watt) LEDs. Controlled via a network adaptor (or possible other local solution). Additional sensors on the device to make it a little more interesting. If possible to use POE (802.3af) to power the LEDs. Hardware: Netduino (not network capable so aim for Netduino Plus when released) or Meridian/P (no analog input so limited sensor config) and requires network module. Framework: Using .NET Micro Framework 4.1 and VS2010 for development. More Info: Please see either the Wiki or
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PowerLED
PowerLED Key Features
PowerLED Examples and Code Snippets
Community Discussions
Trending Discussions on PowerLED
QUESTION
I'm working on a project where the Arduino should do different things based on different characters (a
, b
, etc.) being received over Serial. I have gotten it to respond, but I hit a logic error. When I enter a
, it does as requested and does the soft-reset procedure (grounding the reset pin through a resistor to reset itself remotely). However, when I do b
(or any other of the 30-some other characters, none of which are identical), it does the a
command. It should, based on my logic, not do a
's code since incomingByte != 'a'
, but it does = b
. Why is it running a
and not anything else? Thanks for any help.
P.S. I am aware there are other methods of doing this, which are likely more 'proper,' but I would like to stick with this if/then/elseif logic if possible.
I have attached some of the code below, there's a lot more so I know there might be a missing }
there somewhere at the end, but it's there in the code.
ANSWER
Answered 2019-Apr-10 at 16:36What you are doing here is not a comparison but an assignment which will always return as true.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PowerLED
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page