![]() |
Forum Index : Microcontroller and PC projects : CMM2 - ST7735S - TFT Display
Author | Message | ||||
Nimue![]() Guru ![]() Joined: 06/08/2020 Location: United KingdomPosts: 420 |
Morning (UK) all (Yes, I've searched the forum ;-) ) Am looking to add a 160x128 panel to my CMM2 "Classroom" monitor -- now with temperature and CO2 monitoring (humidity and pressure to follow). Having searched the forum I see reference to some CSUB code. I am looking for some pointers to getting it up and running -- sample "Hello world" code would be awesome if anyone has one up and running. Cheers Nim Entropy is not what it used to be |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
The CMM2 doesn't support multiple display types - that wasn't the intent. There is a way I can think of but it will involve some serious programming on your part. You need to connect the display to the SPI pins and connect up the three control pins. Then you need to find the initialisation sequence for the display off the web and send the requisite commands over SPI toggling the control pins as appropriate. The easiest way to then write to the screen is then to write to a display page in 16-bit format and then use SPI to copy the data to the display. Would probably take me a full day to get all this properly working and I'm quite fast ![]() |
||||
Nimue![]() Guru ![]() Joined: 06/08/2020 Location: United KingdomPosts: 420 |
Cheers @matherp What I am attempting to create is a "box" that monitors the classroom conditions - CMM2 was my "go to" as the workflow of programming directly into the device without a PC tether makes it a more useful teaching tool (no PC distractions, more intimate "coding" experience etc) "There is a way I can think of but it will involve some serious programming on your part." << My coding skills are hack and slash I'm afraid ;-( If I was to go with other MMBasic enabled devices, what would be better for this use case and where would I get such a beast? Had my eye on the F4 that's been mentioned in the threads recently -- might mosey on down to AliExpress ;-) Cheers N Entropy is not what it used to be |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
An F4 with the matching display would do this perfectly. The code would move with very little change and would tie up much cheaper H/W |
||||
Nimue![]() Guru ![]() Joined: 06/08/2020 Location: United KingdomPosts: 420 |
Final Q Can we add a keyboard to the F4 and program it directly? N Entropy is not what it used to be |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
yes: a PS2 keyboard can be connected with a suitable adapter and pullup resistors |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
deleted, sorry. Edited 2021-02-15 21:53 by JohnS |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Here And here PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Nimue![]() Guru ![]() Joined: 06/08/2020 Location: United KingdomPosts: 420 |
Cheers -- I see these posts and continually think I must be missing something -- I read them and know its possible - but not how to do it -- what to wire where etc etc. I'll keep poking, buy the kit and experiment. Cheers N Entropy is not what it used to be |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
![]() PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Nimue![]() Guru ![]() Joined: 06/08/2020 Location: United KingdomPosts: 420 |
![]() Sitting in corner feeling bad now ;-( Thank you - I was more reflecting on my ability and needed a noob 101 guide. That I can understand. Thank you -- most appreciated. N Entropy is not what it used to be |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Don't we all. What I am not absolutely certain of in that diagram is whether we are looking at the connector from the keyboard or the connector that it plugs into. I think the connector that it plugs into, but will check with multimeter when I get my PCB PS/2 sockets. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
![]() VK7JH MMedit |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |