Search found 19 matches

by vyo2003
Sun Aug 23, 2020 10:51 pm
Forum: General Discussion
Topic: How can I initiate Bluetooth Classic pairing from ESP32?
Replies: 0
Views: 1884

How can I initiate Bluetooth Classic pairing from ESP32?

I'd like to use Bluetooth to interface with some HID devices. Apparently, I first have to pair with them using specially calculated pin. After this is done, normal HID interaction can be performed. I'm confused as how can I do this in ESP-IDF? I've read all seemingly relevant Bluetooth Classic docum...
by vyo2003
Sun Aug 23, 2020 9:19 am
Forum: General Discussion
Topic: Why does `esp_bt_gap_register_callback` reject NULL callback?
Replies: 0
Views: 2108

Why does `esp_bt_gap_register_callback` reject NULL callback?

I'm currently digging into Bluetooth stack of ESP32 and have stumped upon one weird thing: esp_bt_gap_register_callback specifically rejects NULL callback, in turn making it impossible to disable callback completely. Here's esp_bt_gap_register_callback: esp_err_t esp_bt_gap_register_callback(esp_bt_...
by vyo2003
Wed Apr 10, 2019 6:56 pm
Forum: General Discussion
Topic: Is it possible to do profiling (gprof) on ESP32?
Replies: 7
Views: 10433

Re: Is it possible to do profiling (gprof) on ESP32?

Any updates on this? Sounds like a neat thing to try out!
by vyo2003
Sat Apr 06, 2019 2:02 pm
Forum: General Discussion
Topic: SPI DMA gotchas
Replies: 2
Views: 4913

Re: SPI DMA gotchas

Well, problem lies outside of SPI: in DC line. Turned out that I have to flush data before every DC change.

Everything is working fine now :D. If somebody is wondering, you can find working code in https://github.com/v1993/u8g2/blob/mast ... /U8x8lib.c.
by vyo2003
Sat Apr 06, 2019 10:57 am
Forum: General Discussion
Topic: SPI DMA gotchas
Replies: 2
Views: 4913

Re: SPI DMA gotchas

Here's my problematic code: static const spi_host_device_t u8x8_spibuses[2] = {HSPI_HOST, VSPI_HOST}; static uint8_t u8x8_byte_espidf_hw_spi_universal(u8x8_t* u8x8, uint8_t msg, uint8_t arg_int, void* arg_ptr, uint8_t host) // It can work with any of two SPIs { u8x8_device_info* info = u8x8->user_pt...
by vyo2003
Fri Apr 05, 2019 9:59 pm
Forum: General Discussion
Topic: SPI DMA gotchas
Replies: 2
Views: 4913

SPI DMA gotchas

I'm trying to port u8g2 library to ESP-32 while keeping interface the same. Current part is SPI driver. I form a buffer from incoming bytes, then send it using DMA but something seems off and display show some messed up picture (but it is still possible to say that there is one). I'm actually lost w...
by vyo2003
Sat Jan 26, 2019 6:37 pm
Forum: General Discussion
Topic: How to add definitions with CMake?
Replies: 1
Views: 4589

Re: How to add definitions with CMake?

Ok, got it by myself :D. Solution: add target_compile_options(${COMPONENT_TARGET} PUBLIC -DYOUR_LOVELY_DEFINITIONS) somwhere after register_component() in your component's CMakeLists.txt. Hope that it will help somebody! P.S.: it is probably also a good idea to warp it into fuction like "project_com...
by vyo2003
Sat Jan 26, 2019 6:01 pm
Forum: General Discussion
Topic: How to add definitions with CMake?
Replies: 1
Views: 4589

How to add definitions with CMake?

Hello. I want to add some preprocessor flags to both my sources and other project components.

For make I create

Code: Select all

Makefile.projbuild
with

Code: Select all

CPPFLAGS += -DMY_LOVELY_DEFINITION
How can I do that with CMake?
by vyo2003
Sat Aug 18, 2018 4:11 pm
Forum: General Discussion
Topic: SD card with SPI adapter
Replies: 6
Views: 7746

Re: SD card with SPI adapter

Problem is solved by using another SD card. That one seems faulty…
by vyo2003
Sat Aug 18, 2018 2:42 pm
Forum: General Discussion
Topic: SD card with SPI adapter
Replies: 6
Views: 7746

Re: SD card with SPI adapter

New results: 0x107 on both 5v and 3v.