Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Basic embedded system programming.doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
723 Кб
Скачать
☆

It is putting before void setup(){}, instead of pin to write pin input-output signal

const static int radioReceiverPin = PIN; //

const static int radioTransmitterPin = PIN; //

const static int digital_to_analog_converter_PIN = PIN; //

const static int digital_to_analog_converter_PIN = PIN; //

const static int pushbuttonPin = PIN; //

const static int OzOLED_SDA = PIN; //

const static int OzOLED_SCL = PIN; //

const static int secureDigitCardPin_PIN = PIN; //

const static int secureDigitCardPin_PIN = PIN; //

const static int secureDigitCardPin_PIN = PIN; //

const static int secureDigitCardPin_PIN = PIN; //

const static int pcUsbPlusPin = PIN; //

const static int pcUsbMinusPin = PIN; //

const static int driveUsbPlusPin = PIN; //

const static int driveUsbMinusPin = PIN; //

const static int RelayPIN = PIN; //

const static int analogValueMax = VOLTAGE; //

const static int analogValueMin = VOLTAGE; //

const static int centralProcessorUnit_PIN = PIN; //

const static int audioCodec_PIN = PIN; //

const static int shiftRegister_PIN = PIN; //

const static int readOnlyMemory_PIN = PIN; //

const static int randomAccessMemory_PIN = PIN; //

const static int lightPin = PIN; //

const static int tempPin = PIN; //

const static int variableResistorPin = PIN; //

It is putting within brackets of void loop(){}, instead of pin to write pin input-output signal

const static int radioReceiverPin = digitalRead(PIN); //

const static int radioTransmitterPin = digitalRead(PIN); //

const static int digital_to_analog_converter_PIN = digitalRead(PIN); //

const static int digital_to_analog_converter_PIN = digitalRead(PIN); //

const static int pushbuttonPin = digitalRead(PIN); //

const static int OzOLED_SDA = digitalRead(PIN); //

const static int OzOLED_SCL = digitalRead(PIN); //

const static int secureDigitCardPin_PIN = digitalRead(PIN); //

const static int secureDigitCardPin_PIN = digitalRead(PIN); //

const static int secureDigitCardPin_PIN = digitalRead(PIN); //

const static int secureDigitCardPin_PIN = digitalRead(PIN); //

const static int pcUsbPlusPin = digitalRead(PIN); //

const static int pcUsbMinusPin = digitalRead(PIN); //

const static int driveUsbPlusPin = digitalRead(PIN); //

const static int driveUsbMinusPin = digitalRead(PIN); //

const static int RelayPIN = digitalRead(PIN); //

const static int analogValueMax = digitalRead(PIN); //

const static int analogValueMin = digitalRead(PIN); //

const static int centralProcessorUnit_PIN = digitalRead(PIN); //

const static int audioCodec_PIN = digitalRead(PIN); //

const static int shiftRegister_PIN = digitalRead(PIN); //

const static int readOnlyMemory_PIN = digitalRead(PIN); //

const static int randomAccessMemory_PIN = digitalRead(PIN); //

const static int lightPin = digitalRead(PIN); //

const static int tempPin = digitalRead(PIN); //

const static int variableResistorPin = digitalRead(PIN); //

It is putting before void setup(){}, instead of PINS to write pin input-output signal, for example, {MOSI, MISO, SS, SCK, A0, A1, A2, A3, SDA, SCL, 14, 15, 16, 17, …}. And instead NUMBER, to write the lot of numbers, for example {1, 2, 3, 4, ...}

int rows[] = {PINS}; //

int columns[] = {PINS}; //

int numberRows = NUMBER; //

int numberColumns = NUMBER; //

int col_scan; //

int row_scan; //

int i, j; //

int x, y; //

unsigned int rows[] = {PINS}; //

unsigned int columns[] = {PINS}; //

unsigned int numberRows = NUMBER; //

unsigned int numberColumns = NUMBER; //

unsigned int col_scan; //

unsigned int row_scan; //

unsigned int i, j; //

unsigned int x, y; //

const int rows[] = {PINS}; //

const int columns[] = {PINS}; //

const int numberRows = NUMBER; //

const int numberColumns = NUMBER; //

const int col_scan; //

const int row_scan; //

const int i, j; //

const int x, y; //

const static int rows[] = {PINS}; //

const static int columns[] = {PINS}; //

const static int numberRows = NUMBER; //

const static int numberColumns = NUMBER; //

const static int col_scan; //

const static int row_scan; //

const static int i, j; //

const static int x, y; //

char Master[Password_Lenght] = "";

unsigned char Master[Password_Lenght] = "";

const char Master[Password_Lenght] = "";

char DATA[]PROGMEM = {HEXADECIMAL DATA, …}; //

unsigned char DATA[]PROGMEM = {HEXADECIMAL DATA, …}; //

const char DATA[]PROGMEM = {HEXADECIMAL DATA, …}; //

unsigned char Data[Password_Lenght]; //

Pin modes of serial peripheral interface SPI

pinMode(SS, HIGH); //

pinMode(MOSI, HIGH); //

pinMode(MISO, HIGH); //

pinMode(SCK, HIGH); //

pinMode(SS, LOW); //

pinMode(MOSI, LOW); //

pinMode(MISO, LOW); //

pinMode(SCK, LOW); //

Digital writes on the serial peripheral interface SPI

digitalWrite(SS, INPUT); //

digitalWrite(MOSI, INPUT); //

digitalWrite(MISO, INPUT); //

digitalWrite(SCK, INPUT); //

digitalWrite(SS, OUTPUT); //

digitalWrite(MOSI, OUTPUT); //

digitalWrite(MISO, OUTPUT); //

digitalWrite(SCK, OUTPUT); //

Pin modes of two-wire interface i2c

pinMode(SDA, HIGH); //

pinMode(SCL, HIGH); //

pinMode(SDA, LOW); //

pinMode(SCL, LOW); //

Digital writes on the two-wire interface i2c

digitalWrite(SDA, INPUT); //

digitalWrite(SCL, INPUT); //

digitalWrite(SDA, OUTPUT); //

digitalWrite(SCL, OUTPUT); //

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]