¿ªÔÆÌåÓý

Re: Why 16x2 LCD instead of 20x4?


Jack Purdum
 

Hi Jerry:

I agree: Some Arduino libraries are horrible. Others I've seen contain some very, very good code. After a while, you get to know the wheat from the chaff by the author of the library. The good thing is the libraries are Open Source, so you can look at them and modify as you wish. You can also pull libraries "apart". That is, select what you need and discard the rest. The linker should only pull in those library functions you need and the Gnu C++ compiler/environment that is hiding under the Arduino IDE ?is a very good optimizing compiler, but some people use nested functions in their libraries which can cause unnecessary code to be pulled in. While often not trivial, having the source code at least makes it possible to increase the granularity of the library and make each function more cohesive.?

I'm a software guy, so I enjoy this kind of stuff, but it's not everyone's cup of tea. The good news is this group's willingness to share their code.?

Jack, W8TEE



From: Jerry Gaffke via Groups.Io <jgaffke@...>
To: [email protected]
Sent: Saturday, January 21, 2017 2:02 AM
Subject: Re: [BITX20] Why 16x2 LCD instead of 20x4?

Check out post 17339 in the AT Sprint Yahoo group. ?He's saying the Arduino environment is fine for simple things, but if you want more than that, best code from scratch. ? I've never messed with anything Arduino, but sounds about right. ?I can imagine many of the libraries aren't tightly coded, and if I had critical timing with a bunch of interrupts going off I'd want complete control. ?Could have some level of basic functionality on the nano under the Arduino environement so it's easy to hack. ?And a completely separate project with code written from scratch to get more stuff working.


Join [email protected] to automatically receive all group messages.