CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 5 matches
CCS Forum Index
Author Message
  Topic: A Clever Button
Petar_2010

Replies: 22
Views: 57355

PostForum: General CCS C Discussion   Posted: Mon Aug 19, 2019 9:36 am   Subject: A Clever Button
Hello,

I have a similar problem. I need to program a push-button with three states:
1 state: if the time of press is less than 1000ms the led must be permanent.
2 state: if the time of press is m ...
  Topic: SWITCH, CASE and BREAK
Petar_2010

Replies: 10
Views: 55942

PostForum: General CCS C Discussion   Posted: Wed Nov 28, 2018 2:21 am   Subject: SWITCH, CASE and BREAK
Many, many thanks Ttelmah,

Very good job, but a little bit complicated. I need to learn more for can use your idea.
However, I´m very grateful.
  Topic: SWITCH, CASE and BREAK
Petar_2010

Replies: 10
Views: 55942

PostForum: General CCS C Discussion   Posted: Sun Nov 25, 2018 9:49 am   Subject: SWITCH, CASE and BREAK
Thank you for your time Ttelmah,

Yes I need work with five buttons, but I think that is easier work with only one at first and then with five.
I found in that forum a very good example of use of ...
  Topic: SWITCH, CASE and BREAK
Petar_2010

Replies: 10
Views: 55942

PostForum: General CCS C Discussion   Posted: Sat Nov 24, 2018 11:52 am   Subject: SWITCH, CASE and BREAK
1) Learn to use the code buttons.

2)

int8 estados; //at this point estados is uninitialised
//could contain anything....

output_a(0x00);


while(true)
{
//What is ...
  Topic: SWITCH, CASE and BREAK
Petar_2010

Replies: 10
Views: 55942

PostForum: General CCS C Discussion   Posted: Thu Nov 22, 2018 3:56 am   Subject: Problem with switch
Hello,

I have a problem with my code with the switch sentence.
The code is compiled correctly but the micro doesn´t work.
I want to have a different modules with steady light or intermittent de ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group