teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

5

modify

2018/04/17 11:35

投稿

退会済みユーザー
answer CHANGED
@@ -16,7 +16,7 @@
16
16
  ```
17
17
 
18
18
  The Compilar will casts all values into 2 bytes or 4 bytes integer when compare it with a numeric value.
19
- However, 'char' allows only -128 to 127 and could not contain 0xE3 that means 227.
19
+ However, 'char' allows only -128 to 127 and could not contains 0xE3 that means 227.
20
20
 
21
21
  ###### More information:
22
22
 

4

modify

2018/04/17 11:35

投稿

退会済みユーザー
answer CHANGED
@@ -16,7 +16,7 @@
16
16
  ```
17
17
 
18
18
  The Compilar will casts all values into 2 bytes or 4 bytes integer when compare it with a numeric value.
19
- However, 'char' allows only -127 to 127 and could not contain 0xE3 that means 227.
19
+ However, 'char' allows only -128 to 127 and could not contain 0xE3 that means 227.
20
20
 
21
21
  ###### More information:
22
22
 

3

modify

2018/04/17 11:34

投稿

退会済みユーザー
answer CHANGED
@@ -1,4 +1,4 @@
1
- I think that you may use 'unsigned char' intead of 'char'.
1
+ I think that you may use 'unsigned char' instead of 'char'.
2
2
 
3
3
  ```Arduino
4
4
  unsigned char dat[5]; //送信された文字を受け取る配列

2

modify

2018/04/17 11:30

投稿

退会済みユーザー
answer CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  > dat[0] == 'FFFFFFE3'
24
24
 
25
- This means that comparing pointers. I think it will not be muched if dat[0] has same value as 'FFFFFFE3'.
25
+ This means that comparing their pointers. I think it will not be muched if dat[0] has same value as 'FFFFFFE3'.
26
26
 
27
27
 
28
28
  ###### Addition: Size of int.

1

modify

2018/04/17 11:30

投稿

退会済みユーザー
answer CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
  ```
17
17
 
18
- The Compilar will casts all values into 2 bytes or 4 bytes integer when compare it with numeric value.
18
+ The Compilar will casts all values into 2 bytes or 4 bytes integer when compare it with a numeric value.
19
19
  However, 'char' allows only -127 to 127 and could not contain 0xE3 that means 227.
20
20
 
21
21
  ###### More information: