Hello
Thanks Raphael for your help
I can put directly print("bonjour");
I give this very simple example, but I work with the I2c with the timer
DS1307.
I want to give the day and the month with
const char semaine[7][9] ={
"lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"};
const char mois[12][10]
={"janvier","fevrier","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","
decembre "};
unsigned char temps[8];
I use after print(semaine[temps[3]-1]); for example day of weeks in
temps[3]
It works with sdcc 2.6.0 but he doesn't work with 2.7.0
I can't initialize with
const *semaine;
void init_stuff(void)
{
semaine={"lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"};
}
Sdcc refuse the {
Thanks
If somebody is interessing by the I2C library for PIC16F877, i write one
You can get it at http://per.launay.free.fr/pik_digor/sdcc/lib/lib_i2c.lib
and the source at http://per.launay.free.fr/pik_digor/sdcc/lib/source
an example of use in test_Ds1307.c
http://per.launay.free.fr/pik_digor/sdcc/i2c_ds1307/
Pierre
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user