Skip to content

Commit af96ad4

Browse files
committed
Work CAN sample
- Update to new NuGet. - Update readme. - Migrate solution to VS2022.
1 parent f7f4308 commit af96ad4

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

samples/CAN/Can.TestApp.sln

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28010.2048
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.2.32505.173
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "Can.TestApp", "Can.TestApp\Can.TestApp.nfproj", "{123E7C46-FEDA-4EE5-B218-8221F55047C5}"
76
EndProject
7+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6071BCD2-5DF7-455F-BCAF-5792388A00D8}"
8+
ProjectSection(SolutionItems) = preProject
9+
README.md = README.md
10+
EndProjectSection
11+
EndProject
812
Global
913
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1014
Debug|Any CPU = Debug|Any CPU

samples/CAN/Can.TestApp/Can.TestApp.nfproj

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<HintPath>..\packages\nanoFramework.CoreLibrary.1.12.0\lib\mscorlib.dll</HintPath>
3030
<Private>True</Private>
3131
</Reference>
32+
<Reference Include="nanoFramework.Device.Can">
33+
<HintPath>..\packages\nanoFramework.Device.Can.1.3.1\lib\nanoFramework.Device.Can.dll</HintPath>
34+
</Reference>
3235
<Reference Include="nanoFramework.Devices.Can, Version=1.2.4.3, Culture=neutral, PublicKeyToken=c07d481e9758c731">
3336
<HintPath>..\packages\nanoFramework.Devices.Can.1.2.4\lib\nanoFramework.Devices.Can.dll</HintPath>
3437
<Private>True</Private>

samples/CAN/Can.TestApp/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using nanoFramework.Devices.Can;
1+
using nanoFramework.Device.Can;
22
using System;
33
using System.Diagnostics;
44
using System.Threading;
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="nanoFramework.CoreLibrary" version="1.12.0" targetFramework="netnanoframework10" />
4-
<package id="nanoFramework.Devices.Can" version="1.2.4" targetFramework="netnanoframework10" />
4+
<package id="nanoFramework.Device.Can" version="1.3.1" targetFramework="netnano1.0" />
55
<package id="nanoFramework.Runtime.Events" version="1.10.0" targetFramework="netnanoframework10" />
66
<package id="nanoFramework.System.Device.Gpio" version="1.0.4" targetFramework="netnanoframework10" />
77
</packages>

samples/CAN/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CAN sample
22

3-
Shows how to use the [nanoFramework.Devices.Can](http://docs.nanoframework.net/api/nanoFramework.Devices.Can.html) API to read and write from/to a Can device.
3+
Shows how to use the [nanoFramework.Device.Can](http://docs.nanoframework.net/api/nanoFramework.Device.Can.html) API to read and write from/to a Can device.
44

55
## Hardware requirements
66

@@ -13,7 +13,7 @@ The code sample is demonstrative of the use of the CAN API.
1313

1414
### Reference
1515

16-
- [nanoFramework.Devices.Can](http://docs.nanoframework.net/api/nanoFramework.Devices.Can.html)
16+
- [nanoFramework.Device.Can](http://docs.nanoframework.net/api/nanoFramework.Device.Can.html)
1717
- [CAN bus explained](https://www.csselectronics.com/screen/page/simple-intro-to-can-bus/language/en) by CSS Electronics.
1818

1919
## Build the sample

0 commit comments

Comments
 (0)