Skip to content

Commit

Permalink
Set default DMA channel from 5 to 10
Browse files Browse the repository at this point in the history
See jgarff/rpi_ws281x#253 for details.
  • Loading branch information
Urmel11 committed Mar 24, 2018
1 parent c528494 commit bc6dc1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TestApp/ColorWipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void Execute(AbortRequest request)

var ledCount = Int32.Parse(Console.ReadLine());

//The default settings uses a frequency of 800000 Hz and the DMA channel 5.
//The default settings uses a frequency of 800000 Hz and the DMA channel 10.
var settings = Settings.CreateDefaultSettings();

//Set brightness to maximum (255)
Expand Down
2 changes: 1 addition & 1 deletion src/TestApp/RainbowColorAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void Execute(AbortRequest request)

var ledCount = Int32.Parse(Console.ReadLine());

//The default settings uses a frequency of 800000 Hz and the DMA channel 5.
//The default settings uses a frequency of 800000 Hz and the DMA channel 10.
var settings = Settings.CreateDefaultSettings();

//Set brightness to maximum (255)
Expand Down
4 changes: 2 additions & 2 deletions src/rpi_ws281x/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public Settings(uint frequency, int dmaChannel)

/// <summary>
/// Returns default settings.
/// Use a frequency of 800000 Hz and DMA channel 5
/// Use a frequency of 800000 Hz and DMA channel 10
/// </summary>
/// <returns></returns>
public static Settings CreateDefaultSettings()
{
return new Settings(800000, 5);
return new Settings(800000, 10);
}

/// <summary>
Expand Down

0 comments on commit bc6dc1c

Please sign in to comment.