Keyboard interrupt for infinite loop

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Keyboard interrupt for infinite loop

556 Views
ashkanrezaee
Contributor III

Hi,

I want to make a keyboard interrupt during a "while" infinite loop on QN9080. If I use "GETCHAR" or "SCANF", program stop until I press something. But I want to have the loop until I press something (anything) on the keyboard to make an interrupt.  

Labels (2)
0 Kudos
1 Reply

450 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

Are you using Bluetooth Le? Or are you testing just the board drivers? 

You can check the available examples for each in the SKD, there is one for a keyboard that might help you as a guide and one for an HID device working with Bluetooth LE. 

If you are just getting started with the QN9080, I would recommend you to check first the driver example and after that check the Bluetooth one. 

The examples can be downloaded from the MCUXpresso dashboard  . 

Regards, 

Estephania 

0 Kudos