Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,057 Views

Input from keyboard in loop

Hi, 

I have a problem.My PWM is working fine.But now I will change the the time of the pwm fpr example from 30% to 50% t_on. 

 

So I must leave the loop or update the loop. 

I found the kbhit function but it´s not working.It is not part of the default library. So have somebody a idea how i can solve the problem or include the kbhit function. 

 

Sure I can read the keyboard but I don´t want to stop in the loop and wait of an keyboard entry. 

Only when I hit a button oder something like that i will interrupt the loop. 

 

I use a DE0-Nano board. 

 

I hope someone can help me
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
23 Views

Which keyboard are you trying to read from?

Altera_Forum
Honored Contributor I
23 Views

from the normal Keyboard of my Laptop