2021年5月16日日曜日

WIFI not available on Dell Inspiron 14 3000 series

 echo "blacklist dell-rbtn" | sudo tee /etc/modprobe.d/dell-rbtn.conf

2020年10月18日日曜日

image file convert to 0.98 inch OLED

Resize by Gimp

Tools > Transform  tools > Scale 

then 128 x 64


Change to 2 bit

Image > mode > indexed 

select 1bit



Export as c source header


covert to binary to hex with 0x at https://www.rapidtables.com/convert/number/ascii-hex-bin-dec-converter.html

 

sendMsgBuf()

Description

Transmit data to remote CAN device.(

Depending on your preferences, you can use this function to transmit data instead of the beginTransmission() and write() functions.

Syntax


CAN.sendMsgBuf(id, ext, len, buf)

Parameters

id:Device ID for the remote CAN device
ext:Data transmission format

  1. CAN_STDID:Standard data frame, comply with CAN 2.0A standard. ID range: 0 ~ 0x7FF
  2. CAN_EXTID:Extended data frame, based on CAN 2.0B standard. ID range: 0 ~ 0x1FFFFFFF
  3. CAN_STDID_REMOTE:Standard data frame, comply with CAN 2.0A standard. ID range: 0 ~ 0x7FF
  4. CAN_EXTID_REMOTE:Extended data frame, comply with CAN 2.0B standard. ID range: 0 ~ 0x1FFFFFF

len:size of the array
buf:data array

Returns

CAN_OK:Data transmitted
CAN_FAIL:Data transmission failed.

2020年10月4日日曜日

arduino can 通信 MCP2515

can通信用のライブラリを入手
https://github.com/coryjfowler/MCP_CAN_lib
zipのまま、ArduinoのLibraryのフォルダーに保存

UnoとMCP2515を接続

Arduino Uno    MCP2515

5V                 VCC
GND         GND
2                      INT
10                    CS
11                    SI
12                    SO
13                    SCK

2台準備して、CAN信号送受信させる
あっさり繋がった