Go to advanced search

by aszinovyev
Sun May 05, 2013 8:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HMC5883L 3-Axis Compass
Replies: 14
Views: 15960

Re: HMC5883L 3-Axis Compass

This code works for me: #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <linux/i2c-dev.h> #include <math.h> const int HMC5883L_I2C_ADDR = 0x1E; void selectDevice(int fd, int...

Go to advanced search