0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ATtiny1616 と ATtiny1617実験ボードのピンアサイン

Last updated at Posted at 2020-08-14

ATtiny1616 Board(AYA065-1)ピンアサイン

スクリーンショット 2020-08-14 10.19.09.png

ArduinoにおけるATtiny1616のポート情報

スクリーンショット 2020-08-14 10.21.52.png

ATtiny1616 Board サンプルスケッチ

Board上のPA7に接続されたLEDを点灯させます。

// Port名で設定
void setup() {
  pinMode(PIN_PA7, OUTPUT);  
  digitalWrite(PIN_PA7,LOW);
  digitalWrite(PIN_PA7,HIGH);
}
void loop() {
}
// ArduinoPin番号で設定
void setup() {
  pinMode(3, OUTPUT);  
  digitalWrite(3,LOW);
  digitalWrite(3,HIGH);
}
void loop() {
}
// PORTマクロで設定
# define PA7 7
# define LED (1<<PA7)

void setup() {
  PORTA.DIR = PORTA.DIR | LED; 
  PORTA.OUT = PORTA.OUT & ~LED;  
  PORTA.OUT = PORTA.OUT | LED;
}  
void loop() {
}

ATtiny1617 Board(AYA066-1)ピンアサイン

スクリーンショット 2020-08-14 10.20.06.png

ArduinoにおけるATtiny1616のポート情報

スクリーンショット 2020-08-14 10.22.03.png

ATtiny1617 Board サンプルスケッチ

Board上のPA7に接続されたLEDを点灯させます。

// Port名で設定
void setup() {
  pinMode(PIN_PA7, OUTPUT);  
  digitalWrite(PIN_PA7,LOW);
  digitalWrite(PIN_PA7,HIGH);
}
void loop() {
}
// ArduinoPin番号で設定
void setup() {
  pinMode(3, OUTPUT);  
  digitalWrite(3,LOW);
  digitalWrite(3,HIGH);
}
void loop() {
}
// PORTマクロで設定
# define PA7 7
# define LED (1<<PA7)

void setup() {
  PORTA.DIR = PORTA.DIR | LED; 
  PORTA.OUT = PORTA.OUT & ~LED;  
  PORTA.OUT = PORTA.OUT | LED;
}  
void loop() {
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?