you have
is x a int?
and will this stay toggled and not change any of the values when they are up?
and
Type: Posts; User: jamespond88
you have
is x a int?
and will this stay toggled and not change any of the values when they are up?
and
i dont want you to do it but you putting a peice of code in is not making me learn i dont understand the bit of code
okky it sounds kind of what im after how do i go about doing it ?
no i dont want them all on at once like when zone 1 has been used toggle that on soo it cant be used again so i dont get 1 + 1 then when zone 2 is used toggle that on so i dont get 2+2
...
okky i will try and explain
i have a bigger program which i will put all this into. i have a while infinity loop in my main program becasue it is responsible for making the zones flash
...
i dont understand if i set the"bit" on what will happen it dont know about bit shifting ect
soz i was replying to the other guy i think i want to toggle i think what i want is
if (port1)&&(toggle off) mask=X, toggle on
so when it then comes back around it wont execute that...
yea that sounds kinda what im trying to do when its on stay on and dont change kinda thing
well i want to build up a mask by adding 1 , 2 ,4 ,8 ,16 , 32 which i will then use to make my lights flash but i can only have the 1 be used once or the 2 be used once or the 18 . so i can...
hi i have this code
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
//#include <iof1.h>
#include <stdarg.h>
#include <time.h>
hmmmm i dont understand your results either sometimes it works andsometimes it doesnt have you tryed testing it on differnt versions of linux?