Skip to content

Instantly share code, notes, and snippets.

View nuntipat's full-sized avatar

Nuntipat Narkthong nuntipat

  • Bangkok, Thailand
View GitHub Profile
@nuntipat
nuntipat / ds1307.c
Created April 22, 2020 04:25
CPE328 (2/2019) RTC
#define F_CPU 8000000UL
#include <avr/io.h>
#include <util/delay.h>
void sendMax7219Command(uint8_t address, uint8_t data)
{
PORTB &= ~(1 << PORTB2);
SPDR = address;
while (!(SPSR & (1 << SPIF)));
#include <stdio.h>
#include <avr/io.h>
#define F_CPU 8000000UL
#include <util/delay.h>
typedef struct
{
uint8_t sec;
uint8_t min;
@nuntipat
nuntipat / logcat_call.txt
Created February 27, 2018 12:11
logcat (call)
--------- beginning of system
I/irsc_util( 269): irsc tool created:0x55913ea070
I/irsc_util( 269): Starting irsc tool
I/irsc_util( 269): Trying to open sec config file
I/irsc_util( 269): file_parser Number of element :0
I/irsc_util( 269): file_parser Invalid Format or Comment - '/* IPC Security Config */
I/irsc_util( 269): '
I/irsc_util( 269): file_parser Number of element :0
I/irsc_util( 269): file_parser Invalid Format or Comment - '/* <GPS QMI Service ID - 16>:<GPS QMI Instance ID - all instances>:<Client Group ID> */
I/irsc_util( 269): '
--------- beginning of main
E/QC-QMI ( 344): qmi_client [344]: unable to connect to server, errno=[2:No such file or directory], attempt=39
E/QC-QMI ( 344): qmi_client [344]: unable to connect to server, errno=[2:No such file or directory], attempt=40
D/Ulp_jni ( 712): JNI:system_update. Event-3
D/LBSSystemMonitorService( 712): handleMessage what - 16
D/DeviceContext( 712): handleMessage what - 1
E/LocSvc_libulp( 712): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1455
E/LocSvc_libulp( 712): I/int ulp_msg_process_system_update(UlpSystemEvent): systemEvent:3
E/LocSvc_libulp( 712): I/===> int ulp_brain_process_system_update(UlpSystemEvent) line 2352
E/LocSvc_libulp( 712): I/===> int ulp_brain_select_providers() line 333
@nuntipat
nuntipat / logcat.txt
Created February 27, 2018 11:56
logcat+serial log
--------- beginning of system
I/irsc_util( 0): irsc tool created:0x55b5f1a070
I/irsc_util( 0): Starting irsc tool
I/irsc_util( 0): Trying to open sec config file
I/irsc_util( 270): file_parser Number of element :0
I/irsc_util( 270): file_parser Invalid Format or Comment - '/* IPC Security Config */
I/irsc_util( 270): '
I/irsc_util( 270): file_parser Number of element :0
I/irsc_util( 270): file_parser Invalid Format or Comment - '/* <GPS QMI Service ID - 16>:<GPS QMI Instance ID - all instances>:<Client Group ID> */
I/irsc_util( 270): '