This file contains 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
package com.example.afreechart; | |
import org.afree.chart.AFreeChart; | |
import org.afree.chart.axis.NumberAxis; | |
import org.afree.chart.plot.XYPlot; | |
import org.afree.chart.renderer.xy.StackedXYBarRenderer; | |
import org.afree.data.xy.DefaultTableXYDataset; | |
import org.afree.data.xy.XYSeries; | |
import android.os.Bundle; | |
import android.app.Activity; |
This file contains 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
package com.example.afreechart; | |
import org.afree.chart.AFreeChart; | |
import org.afree.graphics.geom.RectShape; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.util.AttributeSet; | |
import android.view.View; |
This file contains 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
package com.example.androidplottest; | |
import java.text.DecimalFormat; | |
import java.util.Arrays; | |
import com.androidplot.ui.SizeLayoutType; | |
import com.androidplot.ui.SizeMetrics; | |
import com.androidplot.xy.BarFormatter; | |
import com.androidplot.xy.BarRenderer; | |
import com.androidplot.xy.BarRenderer.BarWidthStyle; |
This file contains 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
package com.example.androidplottest; | |
import java.util.Arrays; | |
import com.androidplot.xy.LineAndPointFormatter; | |
import com.androidplot.xy.SimpleXYSeries; | |
import com.androidplot.xy.XYPlot; | |
import com.androidplot.xy.XYSeries; | |
import android.os.Bundle; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.mbedserialtest" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="18" /> |
This file contains 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
#include "mbed.h" | |
Serial pc(USBTX, USBRX); // tx:送信, rx:受信 | |
void rxCallback() | |
{ | |
pc.putc(pc.getc()); | |
} | |
int main() |
This file contains 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
#include "mbed.h" | |
DigitalOut led1(LED1); | |
DigitalOut led4(LED4); | |
Serial pc(USBTX, USBRX); // tx:送信, rx:受信 | |
void rxCallback() | |
{ | |
led4 = !led4; |
This file contains 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
QFile file("D:\\test.txt"); | |
file.open(QIODevice::WriteOnly | QIODevice::Text); | |
QTextStream out(&file); | |
out << "abc" << endl;//abcと書込み | |
file.close(); |
This file contains 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
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QDebug> | |
#include <QFile> | |
#include <QXmlStreamWriter> | |
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent), | |
ui(new Ui::MainWindow) |
This file contains 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
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QDebug> | |
#include <QFile> | |
#include <QTextCodec> | |
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent), | |
ui(new Ui::MainWindow) |
NewerOlder