Skip to content

Commit 83ac873

Browse files
committed
add pi readme
1 parent 6a777f3 commit 83ac873

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,37 @@
66

77
You can download the `.dll` at [Release](https://github.com/elephantrobotics/Mycobot.csharp/releases)
88

9+
#Build on PI<br>
10+
##Environment<br>
11+
The **MonoDevelop** development tool is recommended<br>
12+
How to **install MonoDevelop**:**https://www.monodevelop.com/download/#fndtn-download-lin**<br>
13+
eg:1、Install:<br>
14+
**sudo apt install apt-transport-https dirmngr**<br>
15+
**sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF**<br>
16+
**echo "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list**<br>
17+
**sudo apt update**<br>
18+
**sudo apt-get install monodevelop**<br>
19+
2、Test:<br>
20+
**Test whether the software is successful**, see the introduction here: **https://www.monodevelop.com/documentation/creating-a-simple-solution/**<br>
21+
22+
##Build&Run<br>
23+
1、Create a **C# console** application;<br>
24+
2、**Copy** the code of the cloned file **program.cs**,then **paste** it into the program.cs of the new project;<br>
25+
3、Change the **serial port** id to **/dev/ttyAMA0**;<br>
26+
![pic](res/chang_port.png)<br>
27+
4、Change the compilation mode to **Release**;<br>
28+
![pic](res/compile_mode.png)<br>
29+
5、Add **Mycobot.csharp.dll** library:ReFerences-->Edit References-->.Net Assembly-->Browse(path for .dll)<br>
30+
![pic](res/add-dll.gif)<br>
31+
6、Run.<br>
32+
Note:Build&&Run,the whole operation process can be seen in the following GIF:<br>
33+
![pic](res/all1.gif)<br>
34+
![pic](res/all2.gif)<br>
35+
![pic](res/all3.gif)<br>
36+
37+
38+
#Build on Windows
39+
940
###**notice:**<br>
1041
if you project **target frame** is **.net core**,download **net core/Mycobot.csharp.dll**,if is **.net framework**,download **net framework/Mycobot.csharp.dll**)
1142

res/add-dll.gif

382 KB
Loading

res/all1.gif

401 KB
Loading

res/all2.gif

509 KB
Loading

res/all3.gif

450 KB
Loading

res/chang_port.png

19.7 KB
Loading

res/compile_mode.png

15.2 KB
Loading

0 commit comments

Comments
 (0)