jjg / RESTduino

A sketch to provide a REST-like interface to the Arduino+Ethernet Shield
GNU General Public License v3.0
284 stars 40 forks source link

Low and high are reverse? #8

Closed betz closed 12 years ago

betz commented 12 years ago

Hi,

I have something strange going on here. When i open http://192.168.1.177/6/LOW the led goes on, and HIGH it turns of. Am i doing wrong, or is there a bug?

It's a brand new arduino ethernet, just uploaded the sketch, used same ip and mac address as in the example. attached a led to port 6 and 3v.

Cheers, Tom

jjg commented 12 years ago

That is very strange indeed!

I haven't tested the sketch on the Arduino Ethernet (only the Arduino with an Ethernet shield) but I would think they are very similar?

It has been awhile since I've updated the sketch however, perhaps something has been changed in the toolchain; do you know what version of the Arduino IDE you're using?

Thanks! On Jun 14, 2012 5:29 PM, "Tom Behets" < reply@reply.github.com> wrote:

betz commented 12 years ago

I am using version 1.0

there is a 1.0.1 version now, will try it with that one...

betz commented 12 years ago

nope, same problem

mibe commented 12 years ago

Did you really connect the LED between port 6 and 3.3V? If so, the port would act as current sink if set to LOW and the LED would go on.

betz commented 12 years ago

My bad :)

Thanks for your help!

mibe commented 12 years ago

You're welcome! :-)