processing.app.BaseNoGui Java Examples

The following examples show how to use processing.app.BaseNoGui. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ESP32FS.java    From arduino-esp32fs-plugin with GNU General Public License v2.0 4 votes vote down vote up
private long getIntPref(String name){
  String data = BaseNoGui.getBoardPreferences().get(name);
  if(data == null || data.contentEquals("")) return 0;
  return parseInt(data);
}
 
Example #2
Source File: EspExceptionDecoder.java    From EspExceptionDecoder with GNU General Public License v2.0 4 votes vote down vote up
private long getIntPref(String name){
  String data = BaseNoGui.getBoardPreferences().get(name);
  if(data == null || data.contentEquals("")) return 0;
  if(data.startsWith("0x")) return Long.parseLong(data.substring(2), 16);
  else return Integer.parseInt(data);
}
 
Example #3
Source File: ESP8266FS.java    From arduino-esp8266fs-plugin with GNU General Public License v2.0 4 votes vote down vote up
private long getIntPref(String name){
  String data = BaseNoGui.getBoardPreferences().get(name);
  if(data == null || data.contentEquals("")) return 0;
  if(data.startsWith("0x")) return Long.parseLong(data.substring(2), 16);
  else return Integer.parseInt(data);
}