Offline
Full Member
Karma: 0
Posts: 167
|
 |
« Reply #15 on: June 24, 2011, 06:22:25 am » |
Nice, I wish I had seen this before I wrote my own library, although I needed the goldelox SGC command set.
I did implement all of the SD card functions in the 4D command reference (my thread is at the bottom of the first page ATM) but I didn't really find anything unusual about them compared with any of the rest of the commands. The only one that needed any special handling was ReadSector, for which I found I needed to increase the Rx buffer to be much larger or else I would lose 75% of the block (which in turn would cause my version of nacAck() to lock forever, so I added a simple timeout to prevent the worst case).
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #16 on: June 24, 2011, 06:54:28 am » |
@ extent, Thank you for sharing! I haven't investigate the SD card functions yet, so I'll pick them from you library  @ all, Here's the link to the thread about extent's 4D library. Main difference lies on the 2-byte coordinates for the 320x240 screen versus 1-byte coordinates for the smaller than 255 pixel screens.
|
|
|
|
« Last Edit: June 24, 2011, 07:00:24 am by avenue33 »
|
Logged
|
avenue33
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 167
|
 |
« Reply #17 on: June 24, 2011, 08:24:04 am » |
Ya SGC commands for both generations of chips are identical in almost every case. The other one that I remember that's different are some of the control flags, like the goldelox does not support the landscape setting.
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #18 on: July 02, 2011, 12:44:29 am » |
Hi! Here's a real model where the touch-screen acts as a dashboard to manage the stepper motor. The model combines an Arduino board and fischertechnik building blocks.  For more details, please read On the Arduino side, an I2C stepper controller. On the fischertechnik side, a stepper motor model. Enjoy 
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 9
Arduino rocks
|
 |
« Reply #19 on: July 21, 2011, 06:43:07 pm » |
I noticed in the example file that you draw your own buttons using your button.h/button.cpp. Was just wondering why you chose to do it that way instead of using the button drawing commands built into the 4D Serial language?
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #20 on: July 22, 2011, 02:51:06 am » |
Hi! Actually, for two main reasons boolean check(); Best regards,
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 70
Posts: 6802
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #21 on: July 22, 2011, 04:42:02 am » |
I guess they thought auto sizing is a good idea, which on occasion it is, but I think fixed button sizes are better most of the time.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 9
Arduino rocks
|
 |
« Reply #22 on: July 22, 2011, 10:06:34 am » |
Thanks for the reply. Just starting out with your library - it makes it all fairly easy.
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #23 on: August 06, 2011, 07:30:28 am » |
Hi! I bought a more powerful Arduino-like board with a 80 MHz controller: the chipKIT UNO32.  Porting my Serial_LCD.h library for the from Arduino to the chipKIT UNO32 wasn't a major task, provided some precautions: - Coping with implicit types as int, which don't mean the same on a 8-bit environment and a 32-bit one: all variables require explicit types.
- Adding full support to the chipKIT UNO32 hardware second serial port, without loosing the software emulated serial port.
- Making the main Serial_LCD.h library immune from hardware / software serial port: I added an abstraction layer.
- Trying to understand why an #if #include statement doesn't work.
- Dealing with over-speed, a 80 MHz board working with a 12 MHz display.
Enjoy CAUTION The latest NewSoftSerial release 11 is required for the abstraction layer. Although the library is now named SoftwareSerial, rename it to NewSoftSerial. See http://arduiniana.org/2011/01/newsoftserial-11-beta/
|
|
|
|
« Last Edit: October 05, 2011, 05:06:52 am by avenue33 »
|
Logged
|
avenue33
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 167
|
 |
« Reply #24 on: August 06, 2011, 08:27:08 pm » |
nice, the bump up to 230400 baud on the hardware serial port really helps frame rates as well.
I got around needing a serial proxy by just passing a reference to the Stream object type. Both the Arduino hardware serial ports and NewSoftSerial (beta 11 and newer) are of this type, so you can setup whatever kind of serial port you want, pass it to your constructor and everything just works.
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #25 on: August 07, 2011, 12:03:09 am » |
@extent,
Thank you for the tip about the stream type of the new NewSoftSerial.
However, because NewSoftSerial relies heavily on AVR intricacies and interrupts, it is not compatible with chipKIT.
I'll give a try to the beta 11.
Best regards,
|
|
|
|
« Last Edit: August 07, 2011, 05:37:10 am by avenue33 »
|
Logged
|
avenue33
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #26 on: August 07, 2011, 12:00:27 pm » |
Hi! Thanks to the 4D Labs support, the new release 6 implements sound playing. Actually, the 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD Display Module requires up to 250 mA, more than the Arduino built-in regulator could provide, when it plays sound.  Read the full report with video and sound!
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #27 on: September 18, 2011, 10:54:20 am » |
A clear extension for buttons is a dialog window. Release 7 features a modal dialog window with - 1 icon
- 1 title
- up 3 lines of text
- up to 3 buttons
- screen is saved before the dialog opens and restored after
I provide the library with an example and a video. Enjoy 
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #28 on: September 25, 2011, 04:22:47 pm » |
Graphic intensive use of the LCD display with the fast 80 MHz chipKIT board overloads the screen micro-controller. Especially, sent and received messages overlap and the ACK / NACK protocol is lost  . Hence a solution to protect the serial connection from overload and obtain an nicely synchronised conversation.  The library reaches release 8 with overload protection  .
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
France
Offline
Sr. Member
Karma: 7
Posts: 436
|
 |
« Reply #29 on: September 28, 2011, 09:13:04 am » |
I received a lot of mails and messages about the Serial_LCD library. Among them, some deal with basics, as connection, hence this post.  Here's the general layout: an Arduino Uno and the µLCD-32PT(SGC) screen. Follow to step-by-step guidance so it just works!
|
|
|
|
|
Logged
|
avenue33
|
|
|
|
|