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 support@ccsinfo.com

Timer0 nor timer1 does not burst.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 13525

View user's profile Send private message

PostPosted: Thu Nov 09, 2017 11:05 am     Reply with quote

The command to read a pin without changing it is 'output_state'.

if (output_state(PIN_B1)==0)

tests that pin B1 is low, without changing it to be an input.
jacktaylor



Joined: 02 Sep 2017
Posts: 70

View user's profile Send private message Send e-mail

Thank you Ttelmah
PostPosted: Fri Nov 10, 2017 9:42 am     Reply with quote

This if (output_state (PIN_B1) == 0) command does not appear in the ccs manual.


And when I enter it in my code, it presents error in the complication:

*** Error 12 "RelogDispl7Seg.c" Line 42 (22,23): Undefined identifier - output_state



Ttelmah wrote:
The command to read a pin without changing it is 'output_state'.

if (output_state(PIN_B1)==0)

tests that pin B1 is low, without changing it to be an input.
PCM programmer



Joined: 06 Sep 2003
Posts: 20385

View user's profile Send private message

PostPosted: Fri Nov 10, 2017 9:45 am     Reply with quote

It actually should be input_state(). Try that. That's in the manual.
Ttelmah



Joined: 11 Mar 2010
Posts: 13525

View user's profile Send private message

PostPosted: Fri Nov 10, 2017 9:49 am     Reply with quote

Embarassed
jacktaylor



Joined: 02 Sep 2017
Posts: 70

View user's profile Send private message Send e-mail

Thank you friend PCM programmer
PostPosted: Sun Nov 12, 2017 3:31 pm     Reply with quote

Thank you friend PCM programmer

PCM programmer wrote:
It actually should be input_state(). Try that. That's in the manual.
jacktaylor



Joined: 02 Sep 2017
Posts: 70

View user's profile Send private message Send e-mail

Thank you Ttelmah
PostPosted: Sun Nov 12, 2017 3:32 pm     Reply with quote

Thank you friend Ttelmah

Wink Wink
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group