Pages: 1 [2]   Go Down
Author Topic: Wich programing language to learn  (Read 7269 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

(Hmm.. did I forget a couple of smileys in my last post ? Maybe...  smiley-razz )
Logged

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 1940
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You're comparing two analog values, which could fluctuate by some units. If the test is done "fast", you can have flickering.
In fact your 1s delay between each run prevents this from happening even if you haven't any hysteresis

OK, thanks.. I agree that Hysteresis is the right practical approach here, I thought there was some other problem with the basic code construct...
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you guyz for the links, its great to see your code and code comments. Thx for the offer to help with arduino once i start Terry, i will let you know when i get stuck, ty.

I see its quite important to write code efficiently. I've just finished Class and Variables with multiple parameters so i still got whole heap of stuff to learn, but now i will definitely give extra attention for writing code properly, and practice it from begining.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the best language you should learn is c and c++. and if you are interested in computer programming. go for Java
Logged

Pages: 1 [2]   Go Up
Jump to: