Program.cs 466 B

123456789101112131415
  1. // See https://aka.ms/new-console-template for more information
  2. using System.Device.I2s;
  3. Console.WriteLine("Hello, World!");
  4. var device = I2sDevice.Create(new I2sConnectionSettings(1)
  5. {
  6. ChannelFormat = I2sChannelFormat.RightLeft,
  7. Mode = I2sMode.Pdm|I2sMode.Master|I2sMode.DacBuiltIn|I2sMode.Tx,
  8. CommunicationFormat = I2sCommunicationFormat.I2S,
  9. BitsPerSample = I2sBitsPerSample.Bit8,
  10. //BitsPerSample =
  11. //BufferSize =
  12. //BusId =
  13. });