Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiserial.ino No Driver #104

Open
jhsa opened this issue Jan 17, 2022 · 0 comments
Open

multiserial.ino No Driver #104

jhsa opened this issue Jan 17, 2022 · 0 comments

Comments

@jhsa
Copy link

jhsa commented Jan 17, 2022

I tried the Multiserial example on windows 7, using a blue pill board and the arduino IDE.
Windows fails to find and install the drivers.

The same happens also with the following sketch.

#include <USBComposite.h>

const char ManufacturerName[] = "My Device";
const char DeviceName[] = "USB Serial";
const char DeviceSerial[] = "00000000000000000001";

USBCompositeSerial CompositeSerial;


uint32_t counter = 0;
void setup()
{

  pinMode(PA11, OUTPUT);
  pinMode(PA12, OUTPUT);
  digitalWrite(PA11, LOW);
  digitalWrite(PA12, LOW);
  delay(10);
  pinMode(PA11, INPUT);
  pinMode(PA12, INPUT);
  
  
   USBComposite.setManufacturerString(ManufacturerName);
  USBComposite.setProductString(DeviceName);
  USBComposite.setSerialString(DeviceSerial);
  //USBComposite.setVendorId(VendorId);
  //USBComposite.setProductId(ProductId);

  USBComposite.setProductId(0x0236);
  CompositeSerial.registerComponent();
  USBComposite.begin();
  delay(2000);
}
void loop()
{
  CompositeSerial.print("Counter: ");
  CompositeSerial.print(counter);
  CompositeSerial.println(" - Hello World!");
  counter++;
  delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant