The Nano 33 IOT appears not to work with the Keyboard library. For instance
#include <Keyboard.h>
void setup()
{
Serial.begin(115200);
while (!Serial);
Serial.println("Nano 33 IOT");
Keyboard.begin();
pinMode(2, INPUT_PULLUP);
while (digitalRead(2) == HIGH);
Serial.println("output to Serial");
Keyboard.println("output to PC application");
}
void loop()
{
}
produces no keyboard output, only Serial
Something funny is going on with USB ports. Reading around the problem it seems that there was something wrong with the board drivers when used in conjunction with the Keyboard library
My current situation is that Windows Device Manager shows one port for the Nano 33 IOT after uploading the sketch above
but I am not sure that is right. Uploading the Bare Minimum sketch produces a different result
I have version 1.8.11 of the board files installed for the Nano 33 IOT, which seems to be latest
All suggestions for fixes to this problem will be gratefully received @pert
a solution is to open Device Manager and uninstall the MKR1000 drivers; after reset, both serial and HID (keyboard) drivers should be automatically installed
Specific instructions:
Right click the device in Device Manager for your board.
Check the box next to "[] Delete the driver software for this device".
Click the Uninstall button.
Press and release the reset button on the board. The board should now automatically reinstall.
I went through the process of uninstalling and deleting the drivers for an entry with the yellow triangle so I believe that the Windows drivers are being used and there is now only one entry for the Nano in Device Manager
The driver being used is as follows
Checking for updated drivers results in Windows reporting the following
Searching Windows Update finds no newer/better drivers
I cannot delete the current driver using Device Manager as there is no option to do so on the right click menu, presumably because it is a Microsoft driver rather than a third party one
I can find very little information on this problem on line and so far, no solution