![]() This code is not working: #define R1 984000 Gives batFact = 0.00331693 which is correct. To make the source code more readable and to follow what seems to be the standard way if writing code in this project a decided to go with #define on the user adjustable pre compiling "variables". And now I am trying to improve the battery measuring code. My first Arduino project is building some sensors with the MySensors project. #define versus const and other software performance issues So I have been reading up on the difference between #define and const on the forum. ![]() Only playing with Python for the last 10 years. It was 25+ years ago I did some programming in a non high level scripting language. I am all new to Arduino and C++ and trying to learn/understand it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |