Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:46 28 Nov 2024 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 : merci

Author Message
TC 72
Newbie

Joined: 05/02/2014
Location: France
Posts: 15
Posted: 06:20am 21 Feb 2014
Copy link to clipboard 
Print this post

bonjour a tous
je constate que sur tout les forums c'est pareil.
beaucoup de bla bla et pas beaucoup de vrais échanges.

154 lectures de ma demande et pas une réponse.
même le concepteur du programme qui m'avais demandé de passé par le forum n'a pas répondu.
salutations a tous
*thierry*
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 06:42am 21 Feb 2014
Copy link to clipboard 
Print this post

As far as i understood you're referring to this thread:
http://www.thebackshed.com/forum/forum_posts.asp?TID=6288&KW =TC+72

In which you quoted someone from another discussion thread FROM 2012 who just offered his own code for anyone to download and tinker with.

1) Why didn't you asked that person directly ? Or at least replied into that thread without creating a new one without any reference to the original one. Or at least not open a new thread for this.
2) A LOT has been changed from 2012 in MMBasic - that code might not run as-is on current MMBASIC versions.
3) You have the MMBasic manuals and the documentation from that screen - go & get coding
4) English is not my native language also. But i personally think that if you are able to ask other people to help you in english, at least have the decency of also posting the insults in english.
5) You complain that that topic was read 154 times and nobody replied. Have you heard about those things called "search engines" and "web crawlers" which can and do generate page reads ?

Good luck in having your LCD working.
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 06:54am 21 Feb 2014
Copy link to clipboard 
Print this post

with jems such as "I hope to be the height" and "je can not contacted the slab", it is fair to say that most folks on these forums had no idea what you were talking about. and the zip file you referred to dated way back to 2012:
http://www.thebackshed.com/forum/forum_posts.asp?TID=6288

to add further disadvantage to your cause, you are now speaking in french.

this is an australian forum. to get a reply to any question you need to write clearly in either english, australian, or kiwi (or in american if you absolutely must). any other language, i am afraid, is just going to produce silence.


rob :-)
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 06:57am 21 Feb 2014
Copy link to clipboard 
Print this post

awww... and i had spent half an hour carefully toning down my reply!
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 07:49am 21 Feb 2014
Copy link to clipboard 
Print this post

  robert.rozee said  
this is an australian forum. to get a reply to any question you need to write clearly in either english, australian, or kiwi (or in american if you absolutely must).



Yeeeehawww! Howdy buckaroo! How'r all y'all? Weathers been might nipply round these parts. Betcha its durn toasty there on the flip side! Edited by CircuitGizmos 2014-02-22
Micromites and Maximites! - Beginning Maximite
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 09:08am 21 Feb 2014
Copy link to clipboard 
Print this post

> nipply

That's what I like : " nipply " weather :)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 11:04am 21 Feb 2014
Copy link to clipboard 
Print this post

According to Google Translate, the original post in English is:

hello all
I see all over the forums is the same.
much bla bla and not much real trade.

154 readings of my application and not an answer.
even the designer of the program asked me past the forum has not responded.
greetings to all
* Thierry *


Yeah, not really the best post in the world for a member who has thus far only posted two posts(including the above) - a real good way to make friends on ANY forum, is a message like that, when you are such a newbie.

Most forums exist to help other members with things. Most forums only ask, that members be polite and don't rubbish the forums or the slow rate of replies. I have seen things like this on other forums turn into flame-wars, if the OP posts back with even more snotty remarks, so I guess the ball is in 72's court now.

In such a case, I always tend to say the same thing, if it gets nasty: Don't feed the trolls. And I am not immune. I have been known to get too involved in things like this without thinking, so I guess some of us are more prone to it then others! Edited by Grogster 2014-02-22
Smoke makes things work. When the smoke gets out, it stops!
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 12:06pm 21 Feb 2014
Copy link to clipboard 
Print this post

I think you guys are too hard on Thierry. He did say thank you (merci) and Hello to all (bonjour a tous). It seems to me that he is having difficulty expressing himself in English. That said, it is easy to write in your own language and get it translated. Maybe that's why he wrote in French on this post so he could be more precise. If we cool it a little, who knows he could come back with some very good postings and we may be able to teach him some anglais.

He could also have been more understanding that there are many reasons that his post didn't get answered. I won't buy in if someone wants me to code the whole thing from scratch as one guy wanted recently. Coincidentally, also a French speaker. Also, the person he was talking about may not have been back on the forum. Some people drop in only occasionally.

Enough he said, putting on his flame proof suit.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 02:00pm 21 Feb 2014
Copy link to clipboard 
Print this post

  CircuitGizmos said  
Yeeeehawww! Howdy buckaroo! How'r all y'all? Weathers been might nipply round these parts. Betcha its durn toasty there on the flip side!


Gawd, strewth, strike me hooray sport, we are not just Aussies in the group!

Well We could probably vote CG as an honorary Aussie... (ONLY if he drops that god damn awful yankie drawl like above)



All are welcome of course..

It is an Aussie based forum but is also a world wide group.. I will be honest TC72 I have/had no idea what you were really asking in your original post so I left it alone.. If English isnt your best language it is best to use Google translate at least it creates `almost readable' text.

Regards,

Mick


PS. Welcome anyway I hope you get the answer you are searching for..



Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
TC 72
Newbie

Joined: 05/02/2014
Location: France
Posts: 15
Posted: 07:22am 22 Feb 2014
Copy link to clipboard 
Print this post

bonjour a tous
hello all

merci pour vos envois, je vois que certain comprennent le français ou font comme moi utilisent Google traduction.
le but de ce nouveau "thread" était de vous faire parler et cela a marché.

thank you for your mail I see some include French or do as I use Google translation.
The purpose of this new "thread" was to make you talk and it worked.

je tiens a présenter mes excuses a quiconque a été insulté par mes propos car a l'origine avant traduction il n'y avait aucunes insultes et aucunes intention d'insulter. par contre quelques réponses font état de grossièretés.

I want to apologize to anyone who was offended by my comments as to the origin before translation there was no insults and no intention to insult. by against some answers indicate profanity.

je tiens a vous dire aussi que j'ai contacté le créateur du code et que c'est lui qui m'a invité a me joindre au forum.

I want to tell you that I contacted the creator of the code and that it was he who invited me to join the forum.

il est vrai que ce code est de 2012 mais je ne savais pas qu'il y avait une date de validité.(humour)

it is true that this code is 2012 but I did not know there was an expiration date. (humor)

j'ai aussi dit que je ne trouvais pas les codes de contrôle de l'afficheur en question.(la partie contrôle de la dalle.)

I also said that I could not find the control codes of the display question.(la control part of the slab.)

je repose donc ma question : quelqu'un a-t-il utilisé ce morceau de code et a-t-il réussi a faire communiqué la dalle avec la liaison série?

so I put my question: someone he used this piece of code and he managed to make the statement slab with the serial link?

je remerci tous ceux qui lisent et donne de l'aide .
I Thank all those who read and gives help.

Thierry.

ps: il me semble que le canada a gagné en hockey sur glace au J O !!!
ps: I think canada won in ice hockey in OJ!


 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 08:54am 22 Feb 2014
Copy link to clipboard 
Print this post

And Finland won the Olympics ice hockey bronze medal defeating the USA 5-0
You must be watching the TV. What was the Canada - Sweden score?

edit: I haven't followed these Olympics closely and just now I found out that the match won't be played until 11pm on 23 Feb (Australian time).Edited by BobD 2014-02-23
 
TC 72
Newbie

Joined: 05/02/2014
Location: France
Posts: 15
Posted: 09:59am 22 Feb 2014
Copy link to clipboard 
Print this post

Match suède canada tomorrow (Sunday) in France.

but ok and my display!!!!
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 10:56am 22 Feb 2014
Copy link to clipboard 
Print this post

Thierry, nowhere , in this thread, do you tell us what you want. You make vague references to other threads but most people here did not take mind reading courses. Probably should avoid abbreviations and some acronyms too, jeux Olympiques or JO actually translates to Olympic Games or OG.

Thierry, nulle part, dans ce fil, avez-vous nous dire ce que vous voulez. Vous faites de vagues références à d'autres threads, mais la plupart des gens ici ne prenez pas des cours de lecture de l'esprit. Devrait probablement éviter les abréviations et les acronymes certains trop, jeux olympiques ou JO traduit effectivement aux Olympic Games ou OG.Edited by BobD 2014-02-23
 
TC 72
Newbie

Joined: 05/02/2014
Location: France
Posts: 15
Posted: 11:23am 22 Feb 2014
Copy link to clipboard 
Print this post


good evening

so I put my question: someone he used this piece of code and he managed to make the statement slab with the serial link?

thank


'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''
' demo of the graphics library for the 4D-Systems PICASSO range of touch LCDs
' this has been tested on the 4.3 inch and 3.2 inch serial displays
' models: uLCD43(SGC) and uLCD-32PT(SGC)
'
' the demo displays the time and some other graphics (see the photo)
' buttons are not used but can easily be added
'
' Geoff Graham, March 2012
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''

' open the display
LCDOpen 2

''''''''''''''''''''''''''''''''''''''''''''''''''''
MainScreen:

LCDCLS ' clear the screen and any buttons

TCol = RGB(0,1,1) ' time display colour and position
TVPos = 0

WCol = RGB(0,.8,0) ' water display colour and position
WVpos = 120

BCol = RGB(1,0,0) ' battery display colour and position
BVpos = 156

ICol = RGB(0.9,0.9,0) ' inside temperatures display colour and position
IVpos = 198 : IHpos = 45

OCol = RGB(0.9,0.9,0) ' outside temperatures display colour and position
OVpos = 198 : OHpos = 196

' this demo does not have any butons but this is how you would set them up
'LCDBSetup 250, 50, "Msg1" ' button labeled Msg1
'LCDBSetup 250, 100, "Msg2" ' similar
'LCDBSetup 0, 0, "", 240, 100 ' button not labeled (area of the screen)


LCDPrint 0, WVpos+2, "Water", WCol, 13
LCDLine 96, WVpos, 319, WVpos+20, WCol, 1
LCDLine 100, WVpos + 4, 300, WVpos+16, WCol, 2

LCDPrint 0, BVpos+2, "Battery", BCol, 13
LCDLine 96, BVpos, 319, BVpos+20, BCol, 1
LCDLine 100, BVpos + 4, 150, BVpos+16, BCol, 2

LCDPrint IHPos, IVpos, "27", ICol, 33
LCDPrint IHPos-30, IVPos + 8, "I", ICol, 12
LCDPrint IHPos-30, IVPos + 24, "N", ICol, 12
LCDPrint IHPos+80, IVPos, "C", ICol, 13

LCDPrint OHPos, OVpos, "32", OCol, 33
LCDPrint OHPos+110, OVPos + 2, "O", OCol, 12
LCDPrint OHPos+110, OVPos + 16, "U", OCol, 12
LCDPrint OHPos+110, OVPos + 30, "T", OCol, 12
LCDPrint OHPos+80, OVPos, "C", OCol, 13

Do ' this loop never ends
If tlast$ <> Left$(Time$, 5) Then
tlast$ = Left$(Time$, 5)
hrs = Val(Left$(Time$, 2)) : min = Val(Mid$(Time$, 4, 2))
If hrs > 12 Then hrs = hrs - 12
If hrs >= 10 Then oset = 0 Else oset = 6 * 5
LCDPrint 10 + oset, TVPos, Format$(hrs, "%g") + ":" + Format$(min, "%02g"), TCol, 53
LCDPrint 26, TVPos+80, "Saturday 5th April 2012", TCol, 13
' this demo does not have any butons but this is how you would detect a
' button press and run the appropiate subrouting to handle the press
'On LCDTouch() GoSub msg1, msg2, msg3
EndIf
Loop

' this demo does not have any butons but this is an example of how you would
' handle a button press. Note that these are the target of GOSUB's
'msg1: Print "MSG1 pressed"
' Pause 250
' Return
'
'msg2: Print "MSG2 pressed"
' Pause 250
' Return
'
'msg3: Print "Screen press"
' Pause 250
' Return





'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''
' graphics library for the 4D-Systems PICASSO range of touch LCDs
' this has been tested on the 4.3 inch and 3.2 inch serial displays
' models: uLCD43(SGC) and uLCD-32PT(SGC)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''

' open the LCD display for access
' this resets the display and opens comms at 9600 baud
' com is the communication channel. ie, 3 for COM3:
' pin 17 is used to reset the display and should be connected to the RES
' pin on the LCD. This must be called once at the start of the program
Sub LCDOpen com
Dim LCDBut(10, 5) : Dim LCDBMsg$(10) ' these are used to record the buttons
Open "COM" + Chr$(com + 48) + ":9600" As #10
SetPin 17, 9
Pin(17) = 1
Pause 2000
Print #10, "U";
LCDGetAck
Print #10, "Y" Chr$(5) Chr$(0); ' enable the touchscreen
LCDGetAck
' the following is only needed if the display is in portrait mode
'Print #10, "Y" Chr$(4) Chr$(1); ' rotate a portrait screen to landscape
'LCDGetAck
End Sub


' clear the LCD screen and any buttons that have been setup on it
Sub LCDCLS
Local i
For i = 1 To 10
LCDBut(i, 0) = 0
Next i
Print #10, "E";
LCDGetAck
End Sub



' print a string on the LCD
' z and y are the coordinates, msg$ is the text
' c is the colour and f is the font (both are optional)
' f is two digits, the first is the scale and the second is the PICASO font
Sub LCDPrint x, y, msg$, c, f
Local scale, opaque
If f = 0 Then f = 13
scale = (f\10) Mod 10
opaque = ((f\100) = 0)
If scale = 0 Then scale = 1
f = f Mod 10
If c = -1 Or c = 0 Then c = RGB(1,1,1)
Print #10, "O" Chr$(opaque);
LCDGetAck
If f > 3 Then f = f - 3
Print #10, "S" LCDWords$(2, x, y);
Print #10, Chr$(f) LCDWords$(1, c);
Print #10, Chr$(scale) Chr$(scale) msg$ Chr$(0);
LCDGetAck
End Sub



' draw a line or a box
' x1, y1, x2, y2 are the start and end coordinates, c is the colour
' b = 0 will draw a line, b = 1 will draw a box and b = 2 a filled box
' c and b are optional and will default to a white line
Sub LCDLine x1, y1, x2, y2, c, b
Local cmd$, pen
If c = -1 Or (c = 0 And b = 0) Then c = RGB(1,1,1)
If b = 0 Then
cmd$ = "L"
Else
cmd$ = "r"
Print #10, "p" Chr$(b = 1);
LCDGetAck
EndIf
Print #10, cmd$ LCDWords$(5, x1, y1, x2, y2, c);
LCDGetAck
End Sub



' generate a colour index for the LCD
' r = red, g = green and b = blue
' the values can range from zero (full off) to 1 (fully on)
Function RGB(r, g, b)
RGB = Int(r * 31) * 2048 + Int(g * 63) * 32 + Int(b * 31)
End Function



' draw a button on the screen and initialise it
' x and y are the top left coordinates of the button
' msg$ is the caption for the button. This can be a zero length string
' (ie, "") and in that case the button is not drawn and x1 and y1 are
' used to define an area on the screen which, if touched will return a
' button press. A maximum of 10 buttons can be defined.
' x1 and y1 are optional
Sub LCDBSetup x, y, msg$, x1, y1
Local i

For i = 1 To 10
If(LCDBut(i, 0) = 0) Then Exit For
Next i
If i > 10 Then Error
LCDBut(i, 0) = 2: LCDBut(i, 1) = x: LCDBut(i, 2) = y
LCDBMsg$(i) = msg$
If msg$ <> "" Then
LCDBut(i, 3) = x + Len(msg$) * 24 + 12: LCDBut(i, 4) = y + 44
LCDButton 1, x, y, msg$
Else
LCDBut(i, 3) = x1 : LCDBut(i, 4) = y1
EndIf
End Sub



' returns the button number that has been pressed or zero if no buton pressed
' normally this is used like this: On LCDTouch() GoSub msg1, msg2, msg3
' the button number is the order in which they were set up
Function LCDTouch
Local i, j, k, x, y
Print #10, "o" Chr$(4);
For k = 1 To 8000
If Loc(10) = 4 Then
If Input$(4, #10) = Chr$(0)+Chr$(3)+Chr$(0)+Chr$(0) Then
Print #10, "o" Chr$(5);
For j = 1 To 8000
If Loc(10) = 4 Then
x = Asc(Input$(1, #10)) * 256 + Asc(Input$(1, #10))
y = Asc(Input$(1, #10)) * 256 + Asc(Input$(1, #10))
For i = 1 To 10
If x > LCDBut(i,1) And x < LCDBut(i,3) And y > LCDBut(i,2) And y < LCDBut(i,4) Then
If LCDBut(i, 0) = 2 Then
LCDBut(i, 0) = 1
If LCDBMsg$(i) <> "" Then LCDButton 0, LCDBut(i, 1), LCDBut(i, 2), LCDBMsg$(i)
LCDTouch = i
Exit Function
EndIf
EndIf
Next i
LCDTouch = 0
Exit Function
EndIf
Next j
Error
Else
For i = 1 To 10
If LCDBut(i, 0) = 1 Then
LCDBut(i, 0) = 2
If LCDBMsg$(i) <> "" Then LCDButton 1, LCDBut(i, 1), LCDBut(i, 2), LCDBMsg$(i)
EndIf
Next i
LCDTouch = 0
Exit Function
EndIf
EndIf
Next k
Error "LCD is not responding"
End Function



'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''
' internal routines - user code should not call these routines
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''

' used internally to draw a button
' user code should not call this sub
Sub LCDButton state, x, y, msg$, f, ct, cb
Local scale
If f = 0 Then f = 23
scale = f\10
If scale = 0 Then scale = 1
f = f Mod 10
If ct = 0 Then ct = RGB(1,1,1)
If cb = 0 Then cb = RGB(0,0.5,0.5)
Print #10, "O" Chr$(0); : LCDGetAck
Print #10, "b" Chr$(state) LCDWords$(3, x, y, cb);
Print #10, Chr$(f) LCDWords$(1, ct) Chr$(scale) Chr$(scale);
Print #10, msg$ Chr$(0);
LCDGetAck
End Sub


' used to get an acknowledgement from the LCD
' user code should not call this sub
Sub LCDGetAck
Local i
For i = 1 To 8000
x$ = Input$(1, #10)
If x$ = Chr$(6) Then Exit Sub
If x$ = Chr$(15) Then Error "LCD reported an error"
Next i
Error "LCD is not responding"
End Sub


' send a series of bytes to the screen
' user code should not call this sub
Function LCDWords$(nbr, w1, w2, w3, w4, w5)
LCDWords$ = Chr$(w1\256) + Chr$(w1 And 255)
If nbr > 1 Then LCDWords$ = LCDWords$ + Chr$(w2\256) + Chr$(w2 And 255)
If nbr > 2 Then LCDWords$ = LCDWords$ + Chr$(w3\256) + Chr$(w3 And 255)
If nbr > 3 Then LCDWords$ = LCDWords$ + Chr$(w4\256) + Chr$(w4 And 255)
If nbr > 4 Then LCDWords$ = LCDWords$ + Chr$(w5\256) + Chr$(w5 And 255)
End Function
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024