FelipeMdeO commented on issue #13238:
URL: https://github.com/apache/nuttx/issues/13238#issuecomment-2321166439
Sure @fdcavalcanti.
```
`int main(int argc, FAR char *argv[])
{
int fd;
int ret;
uint8_t buffer[128];
while(1)
{
fd = open("/dev/spislv2", O_RDONLY | O_WRONLY );
if (fd < 0)
{
printf("Failed to open %s\n", "/dev/spislv2");
return -1;
}
printf(" Trying to Read: \n");
ret = read(fd, buffer, 30);
for (int i = 0 ; i < ret; i++)
{
printf("%02X ", buffer[i]);
}
printf("\n");
usleep(1000000);
close(fd);
usleep(2000000);
}
return 0;
}`
```
You can use my .config also:
[config.zip](https://github.com/user-attachments/files/16817268/config.zip)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]