Using external EEprom - need a little guidance


Results 1 to 11 of 11

Threaded View

  1. #5
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Using external EEprom - need a little guidance

    I still get the bad expression errors with the following
    Code:
    i2cread SDA, SCL, $A0, $00,[lightsetHR(1),lightsetMN(1),lightoffHR(1),lightoffMN(1),word droptemp(1) ,word normtemp(1),StartMin(1),StopHour(1),StopMin(1),word alarmhigh(1),StartHour(1),word alarmlow(1)]  
    i2cread SDA, SCL, $A0, $18,[lightsetHR(2),lightsetMN(2),lightoffHR(2),lightoffMN(2),word droptemp(2) ,word normtemp(2),StartMin[2],StopHour(2),StopMin(2),word alarmhigh(2),StartHour(2),word alarmlow(2)]
    i2cread SDA, SCL, $A0, $36,[lightsetHR(3),lightsetMN(3),lightoffHR(3),lightoffMN(3),word droptemp(3) ,word normtemp(3),StartMin(3),StopHour(3),StopMin(3),word alarmhigh(3),StartHour(3),word alarmlow(3)]
    i2cread SDA, SCL, $A0, $54,[lightsetHR(4),lightsetMN(4),lightoffHR(4),lightoffMN(4),word droptemp(4) ,word normtemp(4),StartMin(4),StopHour(4),StopMin(4),word alarmhigh(4),StartHour(4),word alarmlow(4)]
    Expected "]" but there is one at the end of the statement...
    Edit:
    Even when I corrected the StartMin[2] user error ! - still get the same !!
    Last edited by Scampy; - 6th July 2015 at 23:58.

Similar Threads

  1. ConnectOne and external EEPROM
    By mackrackit in forum Ethernet
    Replies: 9
    Last Post: - 23rd June 2011, 01:31
  2. I2C with External Eeprom
    By ruijc in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 22nd February 2008, 15:13
  3. external eeprom
    By ruijc in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st January 2008, 13:11
  4. Simple External EEPROM Table Example?
    By modifyit in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th October 2006, 21:18
  5. External EEPROM
    By gavo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th July 2006, 23:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts