Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20613

BASCOM-AVR : Any Port of Arduino CapSense library to Bascom-AVR : REPLY

$
0
0
[quote:63e0ffda02="rabiuls"]I tried to adopt the Arduino's CapSense library for Bascom-AVR.[/quote:63e0ffda02] It's often easier to write own code, as one gets a better understanding then how things work. The problem is, another reader may have the same problems with your code, as you had with mine. [quote:63e0ffda02]And modified it (removed some options like calibration)[/quote:63e0ffda02] Seems not a good idea, also the ElmChan code does a self calibration at startup and that for a reason. [quote:63e0ffda02]Take 2 pins of AVR, one is send pin and the other is receive pin.[/quote:63e0ffda02] That's ineffective and a waste of pins. For one sensor it's no problem, but alone building a keypad with 8 keys, will unnecessarily waste a complete port. As only one pin per sensor pad is needed by the ElmChan code, it's proof enough it can be done in a more efficient way.

Viewing all articles
Browse latest Browse all 20613

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>