|
Forum Index : Microcontroller and PC projects : PicoMite V7.00.00 Release
| Author | Message | ||||
| bfwolf Senior Member Joined: 03/01/2025 Location: GermanyPosts: 290 |
Are you planning to release a bugfix version, e.g. a V7.00.01, that includes fixes for bugs you discovered while working on V8.x — provided those bugs were already present in V7.00.00? It would be great to have a "stable release" that incorporates all the excellent features already included in V7.00.00. Regards, bfwolf. |
||||
| JanVolk Guru Joined: 28/01/2023 Location: NetherlandsPosts: 422 |
Framebuffer issue with the I2C OLED—solved for now (see my previous post): Here is a snippet of the program. ' === SIEMENS LOGO! EMULATOR FOR RP2040 (PICOMITE) === Option EXPLICIT Option DEFAULT INTEGER Backlight 20 ' ----------- I/O DEFINITIONS ----------- Dim IN_PINS(5) = (9, 10, 11, 12, 14, 15) ' I1..I6 Dim OUT_PINS(3) = (16, 17, 19, 20) ' Q1..Q4 Dim BTN_PINS(5) = (1, 2, 4, 5, 6, 7) ' UP, DN, LT, RT, ESC, OK ' --- LOGIC VARIABLES --- Dim I(6), Q(4), M(6), AI(2) As FLOAT Dim PREV_SCR$(7) ' Buffer for differential OLED update Dim SCR$(7) Dim MODE = 0 ' 0=RUN, 1=EDIT, 2=CLOCK, 3=FILE Dim CURSOR = 0 ' --- LOGIC BLOCKS (Max 16 blocks for speed & RAM) --- ' Type: 0=NOP, 1=AND, 2=OR, 3=NOT, 4=TIMER(TON), 5=CLOCK, 6=ANALOG_COMP Dim BLK_TYPE(16), BLK_IN1(16), BLK_IN2(16), BLK_OUT(16), BLK_PARAM(16) Dim BLK_STATE(16), TMR_VAL(16) ' --- TIMER/SCHEDULER (4 Channels: Day, Week-mask, Start/Stop Time & Date) --- ' CLK_DAYS: Bit 0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thu, 5=Fri, 6=Sat (127 = whole week) Dim CLK_EN(4), CLK_DAYS(4), CLK_ON_H(4), CLK_ON_M(4), CLK_OFF_H(4), CLK_OFF_M(4) Dim CLK_P_START$(4) LENGTH 10, CLK_P_END$(4) LENGTH 10 ' Period "YYYY-MM-DD" ' --- INITIALIZATION --- Sub INIT_HW Local idx For idx = 0 To 5 SetPin IN_PINS(idx), DIN, PULLUP SetPin BTN_PINS(idx), DIN, PULLUP Next idx For idx = 0 To 3 SetPin OUT_PINS(idx), DOUT Next idx SetPin 31, AIN ' AI1 SetPin 32, AIN ' AI2 CLS For idx = 0 To 7 : PREV_SCR$(idx) = " " : Next idx End Sub ' --- DIFFERENTIAL OLED REFRESH (Changed lines only) --- Sub UPDATE_OLED Local r SCR$(0) = "LOGO! " + LEFT$(Time$,5) + " " + LEFT$(Date$,6) + Mid$(Date$,9,2) SCR$(1) = "I: " + Str$(I(1))+Str$(I(2))+Str$(I(3))+Str$(I(4))+Str$(I(5))+Str$(I(6)) + " Q: " +Str$(Q(1))+Str$(Q(2))+Str$(Q(3))+Str$(Q(4)) SCR$(2) = "M: " + Str$(M(1))+Str$(M(2))+Str$(M(3))+Str$(M(4))+Str$(M(5))+Str$(M(6)) SCR$(3) = "A1:" + Str$(AI(1),1,2) + "V A2:" + Str$(AI(2),1,2) + "V" SCR$(4) = "----------------------" If MODE = 0 Then SCR$(5) = "STATUS: RUN" SCR$(6) = "OK:Menu RT:Ladder" SCR$(7) = "UP:Save DN:Load" ElseIf MODE = 1 Then SCR$(5) = "MENU: [1]CLOCK" SCR$(6) = " [2]SAVE" SCR$(7) = "ESC: Back" EndIf For r = 0 To 7 SCR$(r) = LEFT$(SCR$(r) + " ", 21) If SCR$(r) <> PREV_SCR$(r) Then Text 0, r * 8, SCR$(r),,7 PREV_SCR$(r) = SCR$(r) EndIf Next r End Sub Jan. |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Please share the rest of the program as well. Or is it under any license restriction? Volhout PicomiteVGA PETSCII ROBOTS |
||||
| bfwolf Senior Member Joined: 03/01/2025 Location: GermanyPosts: 290 |
Yes, that would be very interesting! But I think it would be better to discuss that in a separate topic.. bfwolf |
||||
| mozzie Guru Joined: 15/06/2020 Location: AustraliaPosts: 533 |
G'day JanVolk, It may have something to do with the way the OLED screen updates when written to, I have had mixed results depending on how much is written at once. Perhaps do all the updates and then call REFRESH: ![]() I will try it myself when time permits. Regards, Lyle. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |