On 9 Oct 2008, at 21:01 , Sebastien LELONG wrote:

>>> library files will be called: function_device
>> so lcd_hd44780_4.jal, temperature_tc77.jal co2_t6603.jal?
> Yes.
OK.

>> I like to name the pins as they connect to the external part, like:
> Yes this makes, particularly when you follow a schematics.
OK, so:

        TC77_SIO, TC77_SCK, HD44780_EN, HD44780_RS.

We can bicker over the UPPERCASE names, but here I like to follow the  
external(!) datasheet.





Still one issue to go:


>>> device_whatever if you want to avoid namespace collision
>> so hd44780_clear(), hd4480_line1(), hd44780_line2(),
>
> No because lcd libs are designed so they can substitute.
>
>> tc77_read_celsius_sbyte(), tc77_read_raw(), t6603_read_co2_ppm(),
>> t6603_set_height()?
> Yes.

All above examples follw the SAME guideline:

device_function()

we can't make an exception here for LCD's.


My proposal is:

lcd_clear_hd44780()
lcd_clear_serial()
read_celsius_tc77()
read_celsius_ds1820()
read_co2_ppm_t6603()
read_co2_ppm_senseair()

again, a search & replace can fix your code when switching from one  
LCD/temperature sensor/CO2 sniffer to another.

---
ir EE van Andel [EMAIL PROTECTED]  http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to