5 Commits

Author SHA1 Message Date
3ea528dc5f ndentation test 2020-10-13 20:45:35 +02:00
05bc5e474c tab indentation 2020-10-13 20:45:04 +02:00
162cb8d90d some more info 2020-10-13 20:44:05 +02:00
80cc6b6098 first time setup update 2020-10-13 20:41:53 +02:00
976c15c9b6 added informative comments 2020-10-13 15:48:13 +02:00
4 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View File

@ -104,3 +104,4 @@ local.properties
.scala_dependencies
.worksheet
/Release/
/sloeber.ino.cpp

View File

@ -2,6 +2,7 @@
#define ARDUINOCONFIG_H_
static const uint8_t COMMAND_TRANSFER_SPI = 1;
static const uint8_t COMMAND_TRANSFER_I2C = 2;
// Can be set to one for additional programming information from the primary
// serial port which is usually also used to flash the Arduino
@ -9,7 +10,7 @@ static const uint8_t COMMAND_TRANSFER_SPI = 1;
// serial communication logic
#define PROGRAMMING_OUTPUT 1
#define BAUD_RATE 115200
#define BAUD_RATE 9600
#define SERIAL_RX_BUFFER_SIZE 256
#define RING_BUFFER_SIZE 100
#define MAX_PACKET_LENGTH 100

View File

@ -126,6 +126,7 @@ void transferSPI(uint8_t address, uint8_t *data, size_t datalen) {
// requires the slave select to be driven low.
CS_PORT = ~address;
SPI.transfer(data, datalen);
// some MGM stuff. This delay might not be needed for other devices.
delay(100);
// Pull the slave select high again.
CS_PORT = 0xff;

View File

@ -48,7 +48,15 @@ make clean -j
2. Install the Eclipse Sloeber plugin by going to Help → Eclipse Marketplace and searching for Sloeber V4 and installing it
3. Create a new Arduino sketch
3. First time setup:
- Create a new Arduino sketch by going to File → New → Other → Arduino Sketch.
- Unselect Use Default destination and pick the arduino folder inside eive\_obsw. The name does not really matter, arduino was taken for the example.
- The board specific information can changed later so its okay to take any option here and change it later.
- Take any example sketch (.cpp or .ino). An example file will be generated and should be deleted manually in the tree view on the left
- Eclipse should ask whether it should switch to the Arduino View. Confirm this with yes.
Now the top menu should have an Arduino section which can be used to install all required libraries and Arduino cores. The project properties can be accessed in the tree view on the left by right clicking on the arduino folder and selecting properties
4. It is recommended to get familiar with the interface provided by the plugin. A majority of functions is provided by top bar elements as shown in the following picture.