![]() ![]() ![]() Just did it again on Arduino UNO I took that proto shield with the RTC soldered up to it and put it on an Uno R3. chipKIT isn't worth my time in this regard. I think I'm going to stubbornly put my foot down and say, "no, sorry, I am above implementing yet another I2C". Sooooo, yeah, someone please get back to me when the attached hello world works as it is supposed to (without excuses or hidden procedures required from a reference manual I cannot find). I forgot that I ordered it, actually! I wonder how long it will take for me to get the 1.8TFT and I2C RTC working? Then why is the chipKIT also like the 1948 Packard Super 8? In that to use I2C, I need to know that by slowing down using the engine, I just drained the carburetor of all its fuel and that to begin running again, I need a gasoline container handy to pour some into the throat of the carburetor whilst someone else is starting the engine and pumping the throttle? Aren't we a little bit past this by 1985? I mean 2005? And yes, the code if I implement I2C manually for this particular cause is from 2005.Ī. Let us consider your analogy that the Arduino is a saloon car with automatic transmission and chipKIT is rugged 4x4 with multiple gearboxes (and I imagine a PTO on rear axle). I think I'm going to be stubborn and declare that I will not hand-roll I2C for PIC when it is supposed to be in the Libs and supposed to work. It would seem I am about the ten thousandth engineer to make a PIC talk to an 1307 RTC. Yeah, I studied the I2C protocol last night. Hi majenko, thanks for always trying to help me. setDateTime() // only used once, in theory. WeekDay = bcdToDec(Wire.receive()) //0-6 -> sunday - Saturday ![]() Hour = bcdToDec(Wire.receive() & 0b111111) //24 hour time Int second, minute, hour, weekDay, monthDay, month, year ![]() Wire.beginTransmission( address ) // Reset the register pointerĭelay(70) // check datasheet for wait time? Serial.println("Starting transmission.") but i2c adressing uses the high 7 bits so it's 112 the address specified in the datasheet is 224 (0圎0) From the exmaple SFRRanger_reader.pde. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |