This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SYSTEM_MODE(SEMI_AUTOMATIC); | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
// OLED hardware versions | |
#define OLED_V1 0x01 | |
#define OLED_V2 0x02 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Inspector | |
# :nodoc: | |
def self._collect_events_for_method_call(&block) | |
events = [] | |
set_trace_func lambda { |event, file, line, id, binding, classname| | |
events << { :event => event, :file => file, :line => line, :id => id, :binding => binding, :classname => classname } | |
} | |