|
6 | 6 |
|
7 | 7 | You can download the `.dll` at [Release](https://github.com/elephantrobotics/Mycobot.csharp/releases)
|
8 | 8 |
|
| 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 | +<br> |
| 27 | +4、Change the compilation mode to **Release**;<br> |
| 28 | +<br> |
| 29 | +5、Add **Mycobot.csharp.dll** library:ReFerences-->Edit References-->.Net Assembly-->Browse(path for .dll)<br> |
| 30 | +<br> |
| 31 | +6、Run.<br> |
| 32 | +Note:Build&&Run,the whole operation process can be seen in the following GIF:<br> |
| 33 | +<br> |
| 34 | +<br> |
| 35 | +<br> |
| 36 | + |
| 37 | + |
| 38 | +#Build on Windows |
| 39 | + |
9 | 40 | ###**notice:**<br>
|
10 | 41 | if you project **target frame** is **.net core**,download **net core/Mycobot.csharp.dll**,if is **.net framework**,download **net framework/Mycobot.csharp.dll**)
|
11 | 42 |
|
|
0 commit comments