![]() |
Forum Index : Microcontroller and PC projects : Armmite H7: Full release & documentation
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
Anyone else tried a keyboard with success? I have two that are the typical USB 5V units, will they work at 3.3v or do they need a level shifter and 3v enabled switched 5v? OBVIOUSLY: I have tried the keyboards on a PC and they work fine, yes I have the option usbkeyboard set correctly, yes they are wired up correctly. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
Azure![]() Guru ![]() Joined: 09/11/2017 Location: AustraliaPosts: 446 |
USB devices are 5V not 3.3V and the power pins on a USB connector are 5V. |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
So back to my original question. Who has a USB keyboard running on the Armmite and what did you do to get it going? What USB keyboard did you use? NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Very nice, thank you ![]() I think I will go the whole hog with a 9" display ![]() Edit: Any well trusted sources here in the UK or just any China source? |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
Me obviously, just set the OPTION as per the manual. I'm using a standard Lenovo keyboard KU-0225 with a type A female to micro-USB adaptor. This then plugs directly into the Nucleo CNI3 connector which is automatically powered when you set the option (green led lights) |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
Thanks, I tried a wireless keyboard last night and it worked whereas the DEL keyboard just does not want to play. Picked up a $10 USB keyboard this morning and it works - happy. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
Can someone look do an option list and see what Option display shows. I can't set it to 24, 80 and it causes problems using the inbuilt editor. If I set option display 24,80 I end up with various results, last result returned 24,66 but now at least the cursor moves to the end of line and matches MM.Edit chat window and I can edit long lines the old way and not drop characters. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
24,80 is the default so is not shown in option list, same as all other "defaults". All versions of Micromite are like this. ![]() |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
That's all well and good, but I changed it and it does show up if you set it, now I get incorrect values if I try to reset it, I should not have to re-flash the chip just to get the correct values back. Or are back but the reported values are just wrong? I set it back to default a dozen times and it still displays incorrect values, it does not disappear from the list. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
As you can see from the above it is working for me. What happens if you do OPTION RESET? Starting from a clean re-flash can you provide a sequence of commands that are giving problems so I can see if I can replicate |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
I was putting off doing an option reset until I check everything else. Interestingly I can type in Option display 24,80 and it will disappear from the option list, however if you reset or power off / on then it reappears in the list with something like OPTION DISPLAY 20,50. I'll do a option reset and put everything back in and see what happens. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
1: DID OPTION RESET 2: Set the following options (I did not set option Display) OPTION BAUDRATE 115200 OPTION COLOURCODE ON OPTION LCDPANEL SSD1963_7A, LANDSCAPE OPTION TOUCH 56, 123 OPTION SDCARD 87 OPTION LCDPANEL CONSOLE OPTION USBKEYBOARD US 3: After doing GUI Calibrate I typed Option LIST and got: OPTION BAUDRATE 115200 OPTION COLOURCODE ON OPTION DISPLAY 24, 66 <<<<---------------------------? OPTION LCDPANEL SSD1963_7A, LANDSCAPE OPTION TOUCH 56, 123 OPTION SDCARD 87 OPTION LCDPANEL CONSOLE OPTION USBKEYBOARD US NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
This is correct. The display size automatically adjusts for the number of characters that can be displayed on the TFT when "OPTION LCDPANEL CONSOLE" is set. This is the same for the MM+ and MMX. Use "OPTION LCDPANEL CONSOLE 1" and you will get 36x100 using FONT 1 |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
So saying that the default is 24,80 is confusing if it changes to suite the font, as I set everything to default and did not change the FONT or the display, it does not list 24,80 but lists 24,66 ? NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
It only changes when you are using LCDPANEL CONSOLE. As I said this is the same for all versions of MM. When you set up the TFT as a console you specify the FONT (default =2 if not specified) this drives the setting of the display height and width from MM+ code Option.Height = VRes/gui_font_height; Option.Width = HRes/gui_font_width; If you think this is incorrect then it is one for Geoff, my code is identical to his. |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
OK now it make sense, thanks. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2931 |
The first parameter in OPTION LCDPANEL CONSOLE defines the font to use. This then 'dictates' the resultant values you see in OPTION DISPLAY. Arguably a warning message could be displayed if you try setting OPTION DISPLAY when you have OPTION LCDPANEL CONSOLE set! WW |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
Yes I just fully understand that now and everything is good with the world once again ![]() NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
I want to get a Piezo buzzer running with touch, selected a pin and issued OPTION TOUCH 56, 123, 90 - pin 90 does not change state on touch or when a command like GUI beep 1000 is issued. I'm assuming that pin 90 is fine as it's listed as an I/O and I'm not using a camera - thoughts? NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1864 |
Looks like option touch is ignoring the click pin option. After setting Option touch as above, I still was able to enter SETPIN 90, DOUT. I entered PIN(90) = 1 and the the Buzzer sounded. EDIT: Might be easier to just do it myself with a timer ISR. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |