Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:48 01 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Armmite H7: Full release & documentation

     Page 10 of 13    
Author Message
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 01:51am 16 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 446
Posted: 02:50am 16 Oct 2018
Copy link to clipboard 
Print this post

USB devices are 5V not 3.3V and the power pins on a USB connector are 5V.
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 03:32am 16 Oct 2018
Copy link to clipboard 
Print this post

  Azure said   USB devices are 5V not 3.3V and the power pins on a USB connector are 5V.


  KeepIS said  
I have two that are the typical USB 5V units


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 Kingdom
Posts: 1646
Posted: 06:27am 16 Oct 2018
Copy link to clipboard 
Print this post

  CaptainBoing said   for a start:

https://www.youtube.com/watch?v=FtQdO4To1vg


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?
Edited by Tinine 2018-10-17
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 07:00am 16 Oct 2018
Copy link to clipboard 
Print this post

  Quote  Who has a USB keyboard running on the Armmite and what did you do to get it going? What USB keyboard did you use?


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)Edited by matherp 2018-10-17
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 12:01am 17 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 04:40am 21 Oct 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10180
Posted: 07:19am 21 Oct 2018
Copy link to clipboard 
Print this post

24,80 is the default so is not shown in option list, same as all other "defaults". All versions of Micromite are like this.



Edited by matherp 2018-10-22
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 07:41am 21 Oct 2018
Copy link to clipboard 
Print this post

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.
Edited by KeepIS 2018-10-22
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 08:29am 21 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 09:22am 21 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 09:37am 21 Oct 2018
Copy link to clipboard 
Print this post

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 USEdited by KeepIS 2018-10-22
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 09:46am 21 Oct 2018
Copy link to clipboard 
Print this post

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 1Edited by matherp 2018-10-22
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 09:59am 21 Oct 2018
Copy link to clipboard 
Print this post

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 ?

Edited by KeepIS 2018-10-22
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 10:11am 21 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 10:13am 21 Oct 2018
Copy link to clipboard 
Print this post

OK now it make sense, thanks.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2931
Posted: 10:14am 21 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 10:22am 21 Oct 2018
Copy link to clipboard 
Print this post

Yes I just fully understand that now and everything is good with the world once again
- I wonder if you'd go mad as the programmer (Peter) trying to think of every warning that may be needed.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 02:21am 26 Oct 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1864
Posted: 03:15am 26 Oct 2018
Copy link to clipboard 
Print this post

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. Edited by KeepIS 2018-10-27
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
     Page 10 of 13    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025