![]() |
Forum Index : Microcontroller and PC projects : ArmmiteF4 firmware V5.07.00b1 - major upgrade
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 868 |
Gerry, This is what I get: mite MMBasic Version 5.07.00b8 Copyright 2011-2020 Geoff Graham Copyright 2016-2020 Peter Mather > ? HEX$(getscanline(1),2) 00 > ? HEX$(getscanline(2),2) 00 > ? HEX$(getscanline(3),2) 00 > Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
32 pin no adapter ? HEX$(getscanline(1),2) ? HEX$(getscanline(2),2) ? HEX$(getscanline(3),2) 00 00 00 Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 868 |
OA47, The RST button (and disconnecting the USB) breaks the Console connection to MMEdit. By the time I clear it and reconnect the message has gone. The one I managed to get, below, missed "ARM" off the first line mite MMBasic Version 5.07.00b8 Copyright 2011-2020 Geoff Graham Copyright 2016-2020 Peter Mather So that is the only way? Thanks, Andrew |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2417 |
Hi all, As noted the latest update reverses the brightness. That would be fine if you could save new settings. I type:- option lcdpanel console 1,rgb(white),rgb(black),5 <enter> But after a reset it reverts to "factory settings" ie backlight off. also the colours have to be included, no defaults. eg > option lcdpanel console 1,,,5 Error : Syntax > |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 868 |
Gerry, just to confirm mine too is 32 pin, no adapter. Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
I close the terminal in MMEdit. power cycle the armite re-open the terminal in MMEdit and the sign-on banner is usually there complete. The windows driver has a buffer that MMEdit doesn't clear. Annoying sometimes, handy other times. what's with the GETSCANLINE(x) function? I am only used to seeing GETSCANLINE on it's own. Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 868 |
Thanks Jim. No complete luck but I can get all but the first 3 letters. I had a bit of excitement. I turned on Autorun with Watchdog too short to get ^C to work so it just kept going. I re-flashed using the STM app but it still kept going (I AM surprised by that). Thankfully Key1 on power up saved the day - so it does work! Interestingly all the Options were still there - so that works too. Cheers, Andrew |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 971 |
getscanline() is as it always was. getscanline([1,2,3]) were put in to allow reading of the LCDPANEL ID, mainly as a diagnostic in case we come across a different NT35510 display as the driver for the IPS_4_16 display relies on reading the ID for correct initialisation for either the OTM8009A or NT35510 chip. All three are returning 00 for the ILI9341_16 32 pin and 40 pin versions. I am thinking the two have a different setup for the LED driver. Latest F4 Latest H7 FotS |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3312 |
I certainly scratched my head over my 32-pin ILI9341 not working after flashing the latest (and because I was doing other things, didn't consider that the flashing might have been the cause). Since it seems that the 32-pin and the 40-pin ILI9341s are reversed with respect to the meaning of backlight nn, perhaps upon first running a newly flashed MMBasic, if ILI9341_16 has been set, if backlight is either 0 or 100, then BACKLIGHT 50 should be set. This would keep the user from confronting a completely dark screen. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 971 |
I think Peter is going to put it back how it was as the 32 pin is the one that comes with the board and provides a solution without any adaptor board. I changed it when developing the NT35510 driver. Latest F4 Latest H7 FotS |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2139 |
nice. new version fixed a problem I was having with touch(), although it could have been any recent update - I was still on 5.0506 ![]() thanks |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10068 |
Armmite Version 5.07.00b9 ArmmiteF407.zip Fixes a bug in GUI - thanks Geoff Fixes the degree symbol in font 7 Fixes backlight for the standard ILI9341 parallel display |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 868 |
Thanks Peter! Andrew |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
@matherp Back on 12 March I made the post reproduced below to this thread but I never saw any response to the question I raised. To be fair, my timing was bad, as my post was immediately preceding the SDCard / Ver 33 Board / USB recognition / etc. issues that caused a flurry of posts and a number of subsequent beta versions to be released. I think that in all this activity my post was missed or forgotten. No drama - it was certainly less important than the SDCard issue, etc. Anyway now that activity on this thread has quietened down, I am raising my earlier question again - hopefully I might get an answer one way or other this time round. Cheers, Phil. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10068 |
I haven't included this on any of my ports because the combination of the GPS functionality and/or longstrings are more powerful for most applications. I don't currently intend to add this functionality - sorry |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
Hi Peter, Ok, thanks - at least I know not to expect that it will be available. Cheers, Phil. |
||||
goc30![]() Guru ![]() Joined: 12/04/2017 Location: FrancePosts: 435 |
here you can work in interrupt mode with rec control Option explicit Const cnbbuf = 10 Dim tmbuf(cnbbuf) As string 'stack dim flgtmbuf(cnbbuf) as integer 'status of frame Dim ptWrite As integer Dim ptRead As integer Dim i As integer Dim i1 As integer Dim i2 As integer dim vn as integer 'Ascii value for end rec Dim ptime1 As float Dim ptime2 As float '***** Setup ************************ vn=10 'stop rec and save frame after rec LineFeed or CR Open "COM1:9600,255,spcomrec" As #2 ptWrite=0 ptRead=0 for i=1 to cnbbuf tmbuf(i)="" 'clear stack flgtmbuf(i)=0 'clear status next i '***************************** '*** Main prog ****** '***************************** do ptime1=timer tfrframe 'read frame rec ptime2=timer 'to know time used if ptime2-ptime1>400 then print time$;" ->";str$((ptime2-ptime1)/1000,4,3) end if pause(10) loop '***************************** sub tfrframe() 'prog work with each frame local txt as string local errtfr as integer for i=1 to cnbbuf ptRead=ptRead+1 if ptRead>cnbbuf then ptRead=1 if flgtmbuf(ptRead)=0 then exit for 'ignore first frame rec if flgtmbuf(ptRead)=2 then 'if frame is complete txt=tmbuf(ptRead) 'frame rec '------------------------------ print txt 'for debug 'spreadframe(txt,errtfr) 'here you can use frame '------------------------------------ if errtfr=0 then 'if no error else errtfr= num error flgtmbuf(ptRead)=0 'ok for future frame in stack end if end if next i end sub sub spcomrec 'interrupt prog read COM port Local tx$ As string 'length 3 Local a$ As string length 1 local vai as integer Local i3 As integer Local i4 As integer i3=Loc(#2) if i3=0 then 'some time rev interrupt but without char exit sub else tx$=Input$(i3,#2) For i4=1 To i3 a$=Mid$(tx$,i4,1) vai=asc(a$) 'code ascci of char if vai=vn then flgtmbuf(ptWrite)=2 'flag end of frame ptWrite=ptWrite+1 ''stack pointer if ptWrite>cnbbuf then ptWrite=1 'if end of stack then pt=begin stack tmbuf(ptWrite)="" flgtmbuf(ptWrite)=1 'flag that buffer is new else tmbuf(ptWrite)=tmbuf(ptWrite)+a$ 'save char rec end if next i4 end sub Edited 2021-03-25 16:23 by goc30 |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
I know it was rejected for the CMM2 also but it would be good for detecting the receipt of a CR or an EOT and for program portability - but... Bill Keep safe. Live long and prosper. |
||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1527 |
An observation regarding board v2.0 (1509) and MMBasic Version 5.07.00b9. The LEDs D2 + D3 light up weakly. The board v33 behaves differently: No lights as expected. SETPIN PA6, DOUT 'LED 2 is ON SETPIN PA7, DOUT 'LED 3 is ON Pause 1000 PIN(PA6) = 1 'LED 2 OFF PIN(PA7) = 1 'LED 3 OFF Pause 1000 PIN(PA6) = 0 'LED 2 ON PIN(PA7) = 0 'LED 3 ON The LEDs are still on when the program exits. If I'm back in the editor the LEDs D2 + D3 light up weakly again. I wouldn't say it's a bug, but it's irritating. Regards Michael causality ≠ correlation ≠ coincidence |
||||
ztoti Regular Member ![]() Joined: 27/10/2011 Location: CanadaPosts: 65 |
Hi all, I connected ILI9341 to the board according with the manual: OPTION LCDPANEL ILI9341, LANDSCAPE, PE0, PD6, PC4 but I have just black screen. Backlight command works just fine (brightness is going from min to max) and this is it, GUI test lcdpanel doesn't work. Any help? Thank you, Zoran ps. Thank you Peter for this upgrade. |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |