Skip to content

Commit

Permalink
Merge pull request #910 from WildernessLabs/bug/ft232-samples
Browse files Browse the repository at this point in the history
fix for new FT232 API
  • Loading branch information
adrianstevens authored Feb 23, 2024
2 parents 6191aeb + 55062f0 commit 495cffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

public class MeadowApp : App<Windows>
{
private Ft232h expander = new Ft232h();
private DisplayScreen? screen;

public override Task Initialize()
{
expander = new Ft232h();
var expander = FtdiExpanderCollection.Devices[0];

var display = new Ili9341
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

public class MeadowApp : App<Windows>
{
private readonly Ft232h expander = new Ft232h();
private DisplayScreen? screen;

public override Task Initialize()
{
var expander = FtdiExpanderCollection.Devices[0];
var display = new Max7219(
expander.CreateSpiBus(),
expander.Pins.C0.CreateDigitalOutputPort(), // CS
Expand Down

0 comments on commit 495cffa

Please sign in to comment.