File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Test/SpiHardwareUnitTests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ private SpiConnectionSettings()
3838 /// Initializes a new instance of the <see cref="SpiConnectionSettings"/> class.
3939 /// </summary>
4040 /// <param name="busId">The bus ID the device is connected to.</param>
41- /// <param name="chipSelectLine">The chip select line used on the bus. Optional, -1 if not used</param>
42- public SpiConnectionSettings ( int busId , int chipSelectLine = - 1 )
41+ /// <param name="chipSelectLine">The chip select line used on the bus. In .NET nanoFramework, you need to have a
42+ /// valid GPIO Chip Select even if you don't use it.</param>
43+ public SpiConnectionSettings ( int busId , int chipSelectLine )
4344 {
4445 BusId = busId ;
4546 ChipSelectLine = chipSelectLine ;
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ public void TryToSeeIfSpiIsSupported()
3636 public void CheckSpiConectionSettings ( )
3737 {
3838 // Arrange
39- SpiConnectionSettings connectinSettings = new SpiConnectionSettings ( 1 ) ;
40- connectinSettings . ChipSelectLine = 12 ;
39+ SpiConnectionSettings connectinSettings = new SpiConnectionSettings ( 1 , 12 ) ;
4140 connectinSettings . ChipSelectLineActiveState = PinValue . High ;
4241 connectinSettings . ClockFrequency = 1_000_000 ;
4342 connectinSettings . DataBitLength = 8 ;
You can’t perform that action at this time.
0 commit comments