You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Give your project a name, e.g. simplefoc_test_project
42
+
2. Choose your board. SimpleFOC supports many MCU architectures, see [hardware/mcus]
43
+
3. Once you have chosen your board, make sure the Framework "Arduino" is selected. PlatformIO supports other Frameworks, but SimpleFOC is an Arduino Library and must be run in Arduino framework.
44
+
4. Click finish
45
+
46
+
At this point, if it is the first project you are creating for this board, PlatformIO will download all the required compilers, tools and core library files. Depending on your internet speed, this can take quite a few minutes, so please be patient!
47
+
48
+
## Add <spanclass="simple">Simple<spanclass="foc">FOC</span>library</span> to your project
49
+
50
+
When everything is finished installing, you should be presented with a view like this:
PlatformIO makes it easy for you to use the source version of the SimpleFOC library. This lets you modify the code, or use the most recent "dev" branch version of the library to try out new features before they are officially released.
116
+
117
+
To use the source code version of the library, try the following steps:
118
+
119
+
1. Using your favourite git client, clone the simplefoc library from https://github.com/simplefoc/Arduino-FOC.git
120
+
2. This will create a folder "Arduino-FOC" on your file-system, containing the library source code
121
+
3. Go to your PlatformIO project, and inside the project go to the lib folder. You can use your operating system's shell, or the built-in shell in Visual Studio Code.
122
+
4. Inside the lib folder of your project, create a symlink to your Arduino-FOC folder<br/>
123
+
Mac/Linux:<br/>
124
+
`% ln -s /path/to/Arduino-FOC`<br/>
125
+
Windows:<br/>
126
+
`% mklink /J Arduino-FOC C:\path\to\Arduino-FOC`
127
+
128
+
Note: If you had previously added the release version of the library to the project using PlatformIO's library management, you will have to remove this reference from the platformio.ini file
0 commit comments