you would need a cross compiler, or Assembler on the QL, then a Ercall port that copes with 112500 baud and a version of "avrdude" to do the uploads over serial.
I don't think we can do this.

Cheers,
Norm.
Hi Tony,t0nyt wrote: Thu Sep 04, 2025 7:06 pm This is the TEST program for the HTU-21D (will eventually write an extension for it in assembler)
No error checking as it's just for testing
And a sample output from itCode: Select all
100 c$=CHR$(164) & CHR$(HEX('FE')) & CHR$(255): REMark Soft Reset 110 r$=I2C_IO(c$,0,HEX('40'),1) 120 PAUSE 20 : REMark pause after reset? 130 r$=GetValue("T"): PRINT "Temperature: " & r$ & "c" 140 r$=GetValue("H"): PRINT "Relative Humidity: " & r$ & "%" 150 DEFine FuNction GetValue(V$) 160 LOCal e,v,c$,r$ 170 SELect ON V$ 180 ="H","h": e=HEX("E5") : REMark Relative Humidity 190 ="T","t": e=HEX("E3") : REMark Temperature 200 END SELect 210 c$=CHR$(164) & CHR$(e) & CHR$(255) 220 r$=I2C_IO(c$,0,HEX('40'),1) 230 PAUSE 200 : REMark WHAT PAUSE NEEDED??? 240 c$=CHR$(2) & CHR$(188) & CHR$(255) 250 r$=I2C_IO(c$,3,HEX('40'),1) 300 v=CODE(r$(2 TO 2)) 310 v=v&&253 : REMark strip status bits 320 v=v+(CODE(r$)*256) 330 SELect ON V$ 340 ="H","h": v=-6+125*(v/65336) 350 ="T","t": v=-46.85+175.72*(v/65536) 360 END SELect 370 v=INT(v*10)/10 400 RETurn v 500 END DEFine
IMG_5011.jpeg
Again, thanks to all
Hi Derek,Derek_Stewart wrote: Fri Sep 05, 2025 7:40 am Does the register retain the measured input of is the value updated from the input source?