Search found 60 matches

by jpj
Tue Jan 18, 2022 6:52 pm
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9259

Re: Help converting bytes to int [resolved]

Excellent! Thank you David! And thanks for rshell too. Very useful :)
by jpj
Tue Jan 18, 2022 2:00 pm
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9259

Re: Help converting bytes to int [resolved]

Using Peter Hinch's DS3231 library worked beautifully! Thank you!
by jpj
Tue Jan 18, 2022 5:19 am
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9259

Re: Help converting bytes to int

I kept trying different things and made a bit of progress. First I printed out the "second" with no formatting and could see the decimal numbers representing 0, 15, 30 and 45 seconds. So I coded those into my "if" statement and they worked / matched. I realize this is not the desired method but it w...
by jpj
Mon Jan 17, 2022 11:54 pm
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9259

Re: Help converting bytes to int

Thanks for the reply David. I took all the writing to LCD out to focus only on the time and "if" statement. The program loops right over the "if minute and second" so I took out the second and just tried to match on the minute. Same result; no error and the program keeps on looping without making a ...
by jpj
Mon Jan 17, 2022 8:15 pm
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9259

Help converting bytes to int [resolved]

I'm developing a project using micropython on a Raspberry Pi Pico with an RTC clock, temp sensor, and displaying on a 1602 LCD. It's working thanks libraries and tutorials written and shared by others like David Hyland. Thank you! I'm stuck trying to convert then compare the bytes returned from the ...
by jpj
Mon Jan 23, 2017 1:48 pm
Forum: General Discussion and Questions
Topic: Supporting CircuitPython
Replies: 6
Views: 6755

Re: Supporting CircuitPython

I'll add a comment as an end user and beginner. The first I heard of MicroPython was after watching a video tutorial on the Adafruit web site. That video directed me to this forum where I began reading and learning, and ultimately ordered a Pyboard with enclosure. The support here has been excellent...
by jpj
Sun Jan 22, 2017 6:03 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31233

Re: [SOLVED] DS3231 uRTC set / read problems

Functioning without issue under CircuitPython 0.8.3 too. Sorry for the obvious mistake. Thanks for the help.
by jpj
Sun Jan 22, 2017 5:57 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31233

Re: DS3231 uRTC set / read problems

SOLVED: @deshipu reminded me the Adalogger has an RTC on it too. It's a PCF8523 that is also at address 104 (0x68). I took the Adalogger out and the DS3231 is functioning properly now, with micropython 1.8.6. I'll re-install CircuitPython 0.8.3 and try that too.

Wow, that's embarrassing :oops:
by jpj
Sun Jan 22, 2017 5:19 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31233

Re: DS3231 uRTC set / read problems

Thanks Mike. I'm going to reload 1.8.6 and try your code.
by jpj
Sun Jan 22, 2017 3:54 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31233

Re: DS3231 uRTC set / read problems

@deshipu - I tried the code with pullup you recommended in the Gitter thread. The DS3231 is the only device on the i2c bus connected to the Adafruit esp8266 Feather Huzzah. >>> i2c = I2C(scl=Pin(5, Pin.OUT, Pin.PULL_UP), sda=Pin(4, Pin.OUT, Pin.PULL_UP)) >>> rtc = urtc.DS3231(i2c) >>> rtc.datetime()...