fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. // Lets assume the Wiimote has the bluetooth address "00:1E:35:3B:7E:6D". If you want the PIN for bluetooth pairing in a simple string, do the following:
  7.  
  8. char pin[7];
  9. pin[0] = 0x6D;
  10. pin[1] = 0x7E;
  11. pin[2] = 0x3B;
  12. pin[3] = 0x35;
  13. pin[4] = 0x1E;
  14. pin[5] = 0x00;
  15. pin[6] = NULL;
  16. // Now "pin" contains your bluetooth pin that should be used for pairing your devices.
  17. printf(pin);
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
m~;5